13.3.5 CSS content 属性
content -- 定义字符串
- 取值: normal | none | [ <string> | <uri> | <counter> | attr(<identifier>) | open-quote | close-quote | no-open-quote | no-close-quote ]+ | inherit
- 引用网址:http://www.dreamdu.com/css/property_content/
- 初始值: normal
- 继承性: 否
- 适用于: :before与:after
- content,中文的"内容"意思
示例
h1:before{content:"梦之都;display:inline;}div:before, div:after{background:lightgreen;content:"梦之都";}