css content属性
翻译结果:
content
英 ['kɒntent] 美 [ˈkɑ:ntent]
n.内容;满足;(书等的)目录;容量
adj.满足的,满意的;愿意的;心甘情愿的
vt.使满足,使满意
第三人称单数: contents 复数: contents 现在分词: contenting 过去式: contented 过去分词: contented
css content属性 语法
作用:content 属性与 :before 及 :after 伪元素配合使用,来插入生成内容。
说明:该属性用于定义元素之前或之后放置的生成内容。默认地,这往往是行内内容,不过该内容创建的框类型可以用属性 display 控制。
注释:所有浏览器都支持 content 属性。如果已规定 !DOCTYPE,那么 Internet Explorer 8 (以及更高版本)支持 content 属性。
css content属性 示例
<!DOCTYPE> <html> <head> <style type="text/css"> a:after {content: " (" attr(href) ")" } </style> </head> <body> <p><a href="http://www.php.cn">php中文网</a> 有很多免费视频教程.</p> <p><b>注释:</b>如果已规定 !DOCTYPE,那么 Internet Explorer 8 (以及更高版本)支持 content 属性。</p> </body> </html>
运行实例 »
点击 "运行实例" 按钮查看在线实例
热门推荐
CSS 相关词典
- keyframes 翻译 示例 语法
- animation 翻译 示例 语法
- animation-name 翻译 示例 语法
- animation-duration 翻译 示例 语法
- animation-timing-function 翻译 示例 语法
- animation-delay 翻译 示例 语法
- animation-iteration-count 翻译 示例 语法
- animation-direction 翻译 示例 语法
- animation-play-state 翻译 示例 语法
- animation-fill-mode 翻译 示例 语法
- background 翻译 示例 语法
- background-attachment 翻译 示例 语法
- background-color 翻译 示例 语法
- background-image 翻译 示例 语法
- background-position 翻译 示例 语法
- resize 翻译 示例 语法
- background-repeat 翻译 示例 语法
- background-clip 翻译 示例 语法
- outline-offset 翻译 示例 语法
- background-origin 翻译 示例 语法
- background-size 翻译 示例 语法
- nav-up 翻译 示例 语法
- border 翻译 示例 语法
- nav-right 翻译 示例 语法
- nav-left 翻译 示例 语法
- nav-index 翻译 示例 语法
- border-bottom 翻译 示例 语法
- nav-down 翻译 示例 语法
- icon 翻译 示例 语法
- box-sizing 翻译 示例 语法
- appearance 翻译 示例 语法
- transition-delay 翻译 示例 语法
- transition-timing-function 翻译 示例 语法
- transition-duration 翻译 示例 语法
- transition-property 翻译 示例 语法
- transition 翻译 示例 语法
- backface-visibility 翻译 示例 语法
- border-bottom-color 翻译 示例 语法
- border-bottom-style 翻译 示例 语法
- perspective-origin 翻译 示例 语法
- border-bottom-width 翻译 示例 语法
- perspective 翻译 示例 语法
- border-color 翻译 示例 语法
- transform-style 翻译 示例 语法
- border-left 翻译 示例 语法
- border-left-color 翻译 示例 语法
- transform-origin 翻译 示例 语法
- border-left-style 翻译 示例 语法
- border-left-width 翻译 示例 语法
- transform 翻译 示例 语法
- border-right 翻译 示例 语法
- border-right-color 翻译 示例 语法
- word-wrap 翻译 示例 语法
- border-right-style 翻译 示例 语法
- word-break 翻译 示例 语法
- border-right-width 翻译 示例 语法
- text-wrap 翻译 示例 语法
- border-style 翻译 示例 语法
- text-shadow 翻译 示例 语法
- border-top 翻译 示例 语法
- border-top-color 翻译 示例 语法
- border-top-style 翻译 示例 语法
- text-overflow 翻译 示例 语法
- border-top-width 翻译 示例 语法
- text-outline 翻译 示例 语法
- border-width 翻译 示例 语法
- text-justify 翻译 示例 语法
- outline 翻译 示例 语法
- outline-color 翻译 示例 语法
- text-emphasis 翻译 示例 语法
- outline-style 翻译 示例 语法
- punctuation-trim 翻译 示例 语法
- outline-width 翻译 示例 语法
- hanging-punctuation 翻译 示例 语法
- border-bottom-left-radius 翻译 示例 语法
- word-spacing 翻译 示例 语法
- border-bottom-right-radius 翻译 示例 语法
- white-space 翻译 示例 语法
- border-image 翻译 示例 语法
- border-image-outset 翻译 示例 语法
- unicode-bidi 翻译 示例 语法
- border-image-repeat 翻译 示例 语法
- border-image-slice 翻译 示例 语法
- border-image-source 翻译 示例 语法
- text-transform 翻译 示例 语法
- border-image-width 翻译 示例 语法
- border-radius 翻译 示例 语法
- text-indent 翻译 示例 语法
- border-top-left-radius 翻译 示例 语法
- text-decoration 翻译 示例 语法
- border-top-right-radius 翻译 示例 语法
- box-shadow 翻译 示例 语法
- text-align 翻译 示例 语法
- line-height 翻译 示例 语法
- letter-spacing 翻译 示例 语法
- direction 翻译 示例 语法
- overflow-x 翻译 示例 语法
- overflow-y 翻译 示例 语法
- color 翻译 示例 语法
- overflow-style 翻译 示例 语法