css - 当尝试在元素上使用 ms-clear 时它不起作用

标签 css

我有一个按钮

<button class="close"></button>

有了这个CSS

button.close {
    font-size: 14px;
}

button.close::-ms-clear {
    display: none;
}

但我无法让 MS 正常工作。怎么了?

最佳答案

来自 developer.mozilla.org

Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

关于css - 当尝试在元素上使用 ms-clear 时它不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52169865/

相关文章:

javascript - Ext.Net 按钮更改字体大小

asp.net - 超过 body 宽度的物体

css - Tailwind 自动生成的 css 文件变量为空

html - 如何使用 CSS 拉伸(stretch)表格单元格的背景图像?

css - img src SVG 使用 CSS 改变样式

php - 如何在 table 上放一个粘头

css - 多个参数或多个函数

html - 单击图像右侧时防止 Bootstrap 轮播滑动

html - 电子邮件模板样板 - 无法设置行高

html - 拆分和居中视口(viewport)高背景图像