DIV+CSS属性清单 | 相关内容content
content版本:CSS2  兼容性:NONE 继承性:无

 
语法:
 
content : attr(alt) | counter(name) | counter(name, list-style-type) | counters(name, string) | counters(name, string, list-style-type) | no-close-quote | no-open-quote | close-quote | open-quote | string | url (url)
 
参数:
 
attr(alt) :  使用alt特性的文字
counter(name) :  使用已命名的计数器
counter(name, list-style-type) :  使用已命名的计数器并遵从指定的list-style-type属性
counters(name, string) :  使用所有已命名的计数器
counters(name, string, list-style-type) :  使用所有已命名的计数器并遵从指定的list-style-type属性
no-close-quote :  并不插入quotes属性的后标记。但增加其嵌套级别
no-open-quote :  并不插入quotes属性的前标记。但减少其嵌套级别
close-quote :  插入quotes属性的后标记
open-quote :  插入quotes属性的前标记
string :  使用用引号括起的字符串
url :  使用指定的绝对或相对地址
 
说明:
 
用来和:after:before 伪元素一起使用,在对象前或后显示内容。
目前IE5.5尚不支持此属性。
对应的脚本特性为content。请参阅我编写的其他书目。
 
示例:
 
p:after { content: url("http:www.divcss5.com"); text-decoration: none; }
p:before { content: url("beep.wav") }
 


学习DIV+CSS div css CSS 就上divcss5 在线CSS教程CSS手册CSS3手册