content 内容

与伪元素 ::after和::before 一起使用以产生内容。

语法:

{ content : sContent }

默认值: normal
继承性:
DOM 语法: object.style.content = sContent
适用于: ::before 或者 ::after 伪元素
浏览器支持: IE Firefox Chrome Safari Opera

可能的值:

normal | none | [ <string> | <uri> | <counter> | attr(<identifier>) | open-quote | close-quote | no-open-quote | no-close-quote ]+ | inherit | icon

描述
normal 内容设置为常规
none 无内容
<string> 插入字符内容
<uri> 插入url指定的内容,一般是图像或者声音等多媒体内容
<counter> 计数器
attr(<identifier>) 返回指定属性的值
open-quote 双引号开始
close-quote 双引号结束
no-open-quote 没有开头的双引号
no-close-quote 没有结束的双引号
icon 图标
inherit 继承父元素的属性值

说明:

本属性最后更新时间:2011-3-19 21:33:59