We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
伪类用于定义元素的特殊状态。
例如,它可以用于:
伪类开头为单冒号 :
:
a:link {color:#FF0000;} /* 未访问的链接 */ a:visited {color:#00FF00;} /* 已访问的链接 */ a:hover {color:#FF00FF;} /* 鼠标划过链接 */ a:active {color:#0000FF;} /* 已选中的链接 */
CSS 伪元素用于设置元素指定部分的样式。
例如,它可用于:
伪元素开头为双冒号 ::
::
::before /* 元素内容前插入新内容 */ ::after /* 元素内容之后插入新内容 */ ::first-letter /* 文本首字母。常用于对文本首字母设置样式 */ ::first-line /* 文本首行。常用于对文本首行设置样式。仅用于块级元素 */ ::selection /* 选中的内容。常用于文本 */ ::placeholder /* 占位符。用于设置占位符的样式 */
The text was updated successfully, but these errors were encountered:
yuanyuanbyte
No branches or pull requests
什么是伪类?
伪类用于定义元素的特殊状态。
例如,它可以用于:
伪类开头为单冒号
:
什么是伪元素?
CSS 伪元素用于设置元素指定部分的样式。
例如,它可用于:
伪元素开头为双冒号
::
The text was updated successfully, but these errors were encountered: