今天我遇到了一个我以前从未见过的新 CSS 语法
content:"\00a0";
在 w3schools 上检查它,它解释说:
Definition and Usage
The content property is used with the :before and :after pseudo-elements, to insert generated content.
我的问题是,您能否在现实世界的示例中向我指出,我们如何使用此 content
属性?在这种情况下,\00a0
是什么意思?
最佳答案
content
属性用于添加内容甚至添加 html 实体。至于\00a0
,它是一个不间断空格的十六进制代码。
资源:
More Information 强>
<强> Javascript, CSS, and (X)HTML entities in numeric order
关于CSS:内容 :"\00a0",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2770681/