gpt4 book ai didi

html - CSS 过渡不起作用?

转载 作者:行者123 更新时间:2023-11-28 19:00:38 26 4
gpt4 key购买 nike

出于某种原因,我似乎无法使 css 转换正常工作。我确信这是一个非常简单的错误。但是我已经用头撞墙一个小时了。我在 Windows 7 64 位上使用 mozilla firefox 4.0.1。

<style>
a:link {
transition: color 1s ease-in-out;
color: #fff;
text-decoration: none;
text-shadow: 1px 1px #000;
}

a:hover {
color: #0072bc;
text-decoration: none;
text-shadow: 1px 1px #000;
}
</style>
<a href="#">test</a>

最佳答案

css transition 是实验性的,但已在某些引擎中实现。您需要使用特定属性:

-moz-transition /* for gecko based like firefox*/
-webkit-transition /* for chrome safari ... */
-o-transition /* for opera*/

关于html - CSS 过渡不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6004588/

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