看看这个
th.asc a:after {
content: '▲';
}
键盘上可以输入哪些内容可以显示该符号? 这个符号是什么?我什么时候应该使用它?
答案 0 :(得分:2)
该字符将在<a>
标记内的th
标记之后呈现,并且可能会查看您的类名asc
,表示升序排序,它只是用作表示升序排序的图标
有关CSS content属性
的更多信息 上的信息th.asc a:after
---^---
/* This makes the content character render after the <a> tag which is inside
th having class .asc which I assume stands for ascending, if you use :before
instead of :after, triangle will be rendered before the <a> tag text */
答案 1 :(得分:1)
这是一个Unicode字符,除了支持世界上所有不同的字母表外,还有图形字符。
你有很多页面要查找unicode字符。一个特别好奇的是
您可以在其中绘制您想要的形状。
在CSS中指定它们很简单,你只需要将数字放在反斜杠
之后'\ 25A0'
是正方形