appearance 是否已废除??
<style>
span {
appearance: button;
-moz-appearance: button;
-webkit-appearance: button;
}
</style>
<span>0000000000</span>
我本机试验 chrome90/firefox87 均无效。
但往上搜索的资料都告诉我有效,最近的资料是2017的。
这个属性是否还存在???
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
https://www.chromestatus.com/features/5070237827334144
根据 chrome 的 features 记录
-webkit-appearance keywords for arbitrary elements
历史回答(不正确)
Can I use : appearance
根据信息,chrome90 / firefox87 确认都是支持的
MDN 档上写的
all element
但是根据 w3c 文档的描述,并不是针对所有元素
W3C 的文档
While the way most elements in a document look can be fully controlled by CSS,
widgets
are typically rendered by UAs using native UI controls of the host operating system, which can neither be replicated nor styled using CSS.The term
widget
in this specification denotes elements that can havenative appearance
, meaning that they are rendered like analogous native widgets or controls of the host operating system or platform, or with a look and feel not otherwise expressible in CSS. It is up to the host language (e.g., HTML [HTML]) to define which elements can have native appearance.