CSS伪类元素设置特殊符号时注意事项

css中的伪类元素在content中设置特殊字符时,需要使用如下的表示方式。

特殊字符表示方式
空格content:"\00a0"
<content:"\003c"
>content:"\003e"
&content:"\0026"
content:"\0022"
?content:"\00a9"
?content:"\00ae"
×content:"\00d7"

更多详细见这里

如果您觉得本文对您有用,欢迎捐赠或留言~
微信支付
支付宝

发表评论

您的电子邮箱地址不会被公开。 必填项已用 * 标注