gpt4 book ai didi

html - CSS :active not working on tags

转载 作者:行者123 更新时间:2023-11-28 16:11:32 25 4
gpt4 key购买 nike

最佳答案

代码:

<a class="button" href="#">KABLAM</a>

你的 css 端口 button:active仅适用于 active button的状态|标签。没有 active为您的 a 定义的属性标签或 button类(class)。您应该将定义定义为 a:active.button:active .

button:active, a:active{
background-image: -webkit-gradient(
linear,
left top,
left bottom,
color-stop(0, #2E9185),
color-stop(1, #00FFE6)
);
background-image: -o-linear-gradient(bottom, #2E9185 0%, #00FFE6 100%);
background-image: -moz-linear-gradient(bottom, #2E9185 0%, #00FFE6 100%);
background-image: -webkit-linear-gradient(bottom, #2E9185 0%, #00FFE6 100%);
background-image: -ms-linear-gradient(bottom, #2E9185 0%, #00FFE6 100%);
background-image: linear-gradient(to bottom, #2E9185 0%, #00FFE6 100%);
}

现在看起来一切正常

关于html - CSS :active not working on <a> tags,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22124802/

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