今天在wordpress的样式表中看到下列代码,可以在li标签的文字前加上一个小的右箭头的字符,
测试发现firefox支持,ie 6和ie 7好像不支持,不过还是值得记录一下,也许会用上。
:before
语法:Selector : before { sRules }
说明:用来和 content 属性一起使用,设置在对象前(依据对象树的逻辑结构)发生的内容。
:after
语法:Selector : after { sRules }
说明:用来和 content 属性一起使用,设置在对象后(依据对象树的逻辑结构)发生的内容。
代码:
.entry ul li:before, #sidebar ul ul li:before {
content: "\00BB \0020";
}:before
语法:Selector : before { sRules }
说明:用来和 content 属性一起使用,设置在对象前(依据对象树的逻辑结构)发生的内容。
:after
语法:Selector : after { sRules }
说明:用来和 content 属性一起使用,设置在对象后(依据对象树的逻辑结构)发生的内容。
