Home > Web Front-end > HTML Tutorial > Content and entities in css3_html/css_WEB-ITnose

Content and entities in css3_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:51:02
Original
997 people have browsed it

css3content的用法

#gaga::before{    font-family:"gaga-font-icon";    content:'\1234'}
Copy after login

<div id="gaga">gaga</div>
Copy after login

实体的用法

#gaga{    font-family:"gaga-font-icon";}
Copy after login


<div id="gaga">&#x1234</div>
Copy after login

效果是一样,content的优势在于灵活的控制,而且减少节点,实体如果要控制,则需要多加层级。

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