content
UK['k?ntent] US[?kɑ:ntent]
n. Content; content; directory (of books, etc.); capacity
adj. Satisfied, satisfied; willing; willing
vt. To satisfy, to satisfy
Third person singular: contents Plural: contents Present participle: contenting Past tense: contented past participle: contented
css content property syntax
Function: The content attribute is used in conjunction with the :before and :after pseudo-elements to insert generated content.
Description: This attribute is used to define the generated content placed before or after the element. By default, this is often inline content, but the type of box this content creates can be controlled using the display attribute.
Note: All browsers support the content attribute. Internet Explorer 8 (and later) supports the content attribute if !DOCTYPE is specified.
css content property example
<!DOCTYPE> <html> <head> <style type="text/css"> a:after {content: " (" attr(href) ")" } </style> </head> <body> <p><a href="http://miracleart.cn">php中文網(wǎng)</a> 有很多免費(fèi)視頻教程.</p> <p><b>注釋:</b>如果已規(guī)定 !DOCTYPE,那么 Internet Explorer 8 (以及更高版本)支持 content 屬性。</p> </body> </html>
Run instance ?
Click the "Run instance" button to view the online instance