Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/73.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html CSS动画在HTA中不起作用_Html_Css_Animation_Transition_Hta - Fatal编程技术网

Html CSS动画在HTA中不起作用

Html CSS动画在HTA中不起作用,html,css,animation,transition,hta,Html,Css,Animation,Transition,Hta,我试图在“hta”节目中为我的图像添加一些动画 但是css“transition”命令不起作用 这是my style.css文件: img { -ms-transform : translate(20px,20px); -ms-transition : transform 1s ;} img:hover { -ms-transform : translate(40px,40px); -ms-transition : transform 1s ;} 我试过-moz--o--webkit-。。

我试图在“hta”节目中为我的图像添加一些动画 但是css“transition”命令不起作用 这是my style.css文件:

img {   -ms-transform : translate(20px,20px);
-ms-transition : transform 1s ;}
img:hover { -ms-transform : translate(40px,40px);
-ms-transition : transform 1s ;}
我试过
-moz-
-o-
-webkit-
。。。什么都不起作用,但当我以
.html
的形式运行它时,它就起作用了


等待您的回答并提前感谢您

我在Windows 10上测试了此HTA,它对我有效

试着站在你这边

<!DOCTYPE html>
<html>
 <head>
 <meta charset="utf-8">
<title>Test CSS3</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<style>
img {   -ms-transform : translate(20px,20px);
-ms-transition : transform 1s ;}
img:hover { -ms-transform : translate(40px,40px);
-ms-transition : transform 1s ;}
</style>
</head>
<body>
<center>
<img src="https://i.gyazo.com/843dbef1d43700db12710c283aae4c7c.gif"></img>
</center>
</body>
</html>

测试CSS3
img{-ms变换:translate(20px,20px);
-ms转换:转换1s;}
img:hover{-ms变换:translate(40px,40px);
-ms转换:转换1s;}

如果您能向我们提供有关您的标记的更多信息,或者甚至重新说明您实际想要做什么?你的问题很难理解。我试图在鼠标结束时移动图像,所以当我在css中使用“transition”时,它在hta程序中不起作用,但当我将其更改为.html并在浏览器中运行时,它会起作用。可能是的副本。我认为问题在于IE版本。。但是谢谢你的回答。。它在windows 10上工作。。。可能是浏览器的问题,我会查出来的。。谢谢