css content property
Translation results:
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 propertysyntax
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 propertyexample
<!DOCTYPE> <html> <head> <style type="text/css"> a:after {content: " (" attr(href) ")" } </style> </head> <body> <p><a href="//m.sbmmt.com">php中文网</a> 有很多免费视频教程.</p> <p><b>注释:</b>如果已规定 !DOCTYPE,那么 Internet Explorer 8 (以及更高版本)支持 content 属性。</p> </body> </html>
Run instance »
Click the "Run instance" button to view the online instance
Popular Recommendations
- Abstract text content in Angular
- Streamlining University Content Management with WYSIWYG HTML Editors
- Poodlana Launches Viral Behind-the-Scenes Fashion Week Content
- NGINX with Node.js: Load Balancing, Serving Static Content, and SSL
- Opera GX and Riot Games team up to deliver exclusive content aimed at LoL players and fans