CSS参考手册
伪元素 | Pseudo-
::spelling-error
这是一种实验技术
由于该技术的规格不稳定,请查看各种浏览器的兼容性表格以供使用。另外请注意,随着规范的变化,实验技术的语法和行为在未来版本的浏览器中可能会发生变化。
::spelling-error
CSS 伪元素表示浏览器已经被标记为不正确拼写的文本片段。
::spelling-error {
color: red;
}
只有一小部分CSS属性可以::spelling-error
在其选择器中使用:
color
background-color
cursor
text-emphasis-color
text-shadow
-
outline
和它的远郊
-
text-decoration
及其相关性质
规范
Specification |
Status |
Comment |
---|---|---|
CSS Pseudo-Elements Level 4The definition of '::spelling-error' in that specification. |
Working Draft |
Initial definition |
浏览器兼容性
Feature |
Chrome |
Firefox (Gecko) |
Internet Explorer |
Opera |
Safari |
---|---|---|---|---|---|
Basic support |
? |
? |
? |
? |
? |
Feature |
Android |
Chrome for Android |
Firefox Mobile (Gecko) |
IE Mobile |
Opera Mobile |
Safari Mobile |
---|---|---|---|---|---|---|
Basic support |
? |
? |
? |
? |
? |
? |
伪元素 | Pseudo-相关
层叠样式表( Cascading Style Sheets )是一种用来表现 HTML 或 XML 等文件样式的计算机语言。CSS 不仅可以静态地修饰网页,还可以配合各种脚本语言动态地对网页各元素进行格式化。