gpt4 book ai didi

html - CSS 动画在 HTA 中不起作用

转载 作者:行者123 更新时间:2023-11-28 15:01:33 24 4
gpt4 key购买 nike

我正尝试在“hta”程序中为我的图像添加一些动画但是 css“过渡”命令不起作用这是我的 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>

关于html - CSS 动画在 HTA 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50068121/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com