::spelling-error
有限可用
::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
规范
| 规范 |
|---|
| CSS Pseudo-Elements Module Level 4> # selectordef-spelling-error> |