::spelling-error CSS 伪元素 表示浏览器标记为不正确拼写的文本段。
::spelling-error {
color: red;
}
可用的属性
只有一小部分 CSS 属性可用于 ::spelling-error 伪元素选择器:
- color
- background-color
- cursor
- caret-color
- outline and its longhands
- text-decoration and its associated properties
- text-emphasis-color
- text-shadow
语法
::spelling-error
规范
浏览器兼容性
参见
- ::grammar-error
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
