gpt4 book ai didi

css - 选择器大纲不起作用

转载 作者:太空宇宙 更新时间:2023-11-03 23:27:36 27 4
gpt4 key购买 nike

我正在尝试使用以下方法在选择器聚焦时自定义轮廓

*:focus { 
outline: green dotted 1px;
}

但我从 Chrome 中看到的仍然显示纯蓝色轮廓。尝试过其他浏览器,它们的行为都不同。我在大纲 CSS 声明上有什么错误吗?

最佳答案

应该可以,http://jsfiddle.net/9yzsf8pq/1/

<style>
*:focus {
outline: #0099FF dotted 1px;
}
</style>

<input type=submit>
<a href="">dasdsa</a>

在所有浏览器中,轮廓都是浅蓝色和虚线。

关于css - 选择器大纲不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26357175/

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