DHTMLET? |
屬性清單?|?相關內(nèi)容:
|
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)
?
參數(shù):
?
attr(alt) : 使用alt特性的文字
counter(name) : 使用已命名的計數(shù)器
counter(name,
list-style-type) : 使用已命名的計數(shù)器并遵從指定的list-style-type屬性
counters(name,
string) : 使用所有已命名的計數(shù)器
counters(name,
string,
list-style-type) : 使用所有已命名的計數(shù)器并遵從指定的list-style-type屬性
no-close-quote : 并不插入quotes屬性的后標記。但增加其嵌套級別
no-open-quote : 并不插入quotes屬性的前標記。但減少其嵌套級別
close-quote : 插入quotes屬性的后標記
open-quote : 插入quotes屬性的前標記
string : 使用用引號括起的字符串
url : 使用指定的絕對或相對地址
?
說明:
?
用來和:after及:before 偽元素一起使用,在對象前或后顯示內(nèi)容。
目前IE5.5尚不支持此屬性。
對應的腳本特性為
content。請參閱我編寫的其他書目。
?
示例:
?
p:after { content: url("http:www.devguru.com"); text-decoration: none; }
p:before { content: url("beep.wav") }
?
?
?
蘇沈小雨制作·保留所有權利
©2001 rain1977.comer . All rights reserved . Terms of Use .