gpt4 book ai didi

css - 如何删除 W3C 无效样式

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

是否有浏览器使用的样式列表作为它们自己对 css 的解释。例如,IE10 在表单输入中添加了一个额外的删除按钮,而 Firefox 为链接添加了一条虚线。

input::-ms-clear { //Remove IE10's “clear field” X button
display: none;
}
input::-moz-focus-inner { //Removing The Dotted Outline FireFox
border: 0;
}

考虑到我不知道不同的 css 使用哪些浏览器,我想知道这里是列表还是 rest.css。

最佳答案

供应商前缀(例如 -ms--moz--webkit- 等)根本不是有效代码.由于它们不是 W3C 规范的一部分,因此无法通过验证。它们在预期的浏览器中工作,并且失败时不会影响其他浏览器中的其他 CSS 属性。

关于css - 如何删除 W3C 无效样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19491767/

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