::spelling-error
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
::spelling-error CSS 伪元素 表示浏览器标记为不正确拼写的文本段。
css
::spelling-error {
color: red;
}
可用的属性
只有一小部分 CSS 属性可用于 ::spelling-error 伪元素选择器:
colorbackground-colorcursorcaret-coloroutlineand its longhandstext-decorationand its associated propertiestext-emphasis-colortext-shadow
语法
::spelling-error
规范
| Specification |
|---|
| CSS Pseudo-Elements Module Level 4> # selectordef-spelling-error> |
浏览器兼容性
Loading…