Home > Web Front-end > CSS Tutorial > Content character encoding in css3

Content character encoding in css3

高洛峰
Release: 2016-11-24 13:14:57
Original
2619 people have browsed it

content has 5 attributes

content:""; // It is empty

content:attr(title); // You can get the tag attribute value or you can get the custom attribute value. For example,

css is div:after{content ; It's "counter(title)", I'm afraid of "counter(gaga);} The result is "I am gaga2, I'm afraid of gaga1";

content: "21e0"; //Get the character set icon slash of the following picture Escape, but there are some differences between some icons directly in the browser

content:url(123.gif); //Use the specified absolute or relative address to insert an external resource (image, audio, video or other supported by the browser) any resources)


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template