Use selector to insert content into the page. selector page

Source: Internet
Author: User

Use selector to insert content into the page. selector page

Reprinted please indicate the source of the article: http://blog.csdn.net/lindonglian/article/details/46470455

Insert text into the page using Selector

<! DOCTYPE html> 


Insert an image file before the title

<! DOCTYPE html> In CSS3, the attr (attribute name) of the content attribute is used to specify the attr value. In this way, the attribute value of an attribute can be displayed.

<! DOCTYPE html> Add ID

<! DOCTYPE html> 


Using the counter attribute of the before selector or after selector, you can not only retrieve text and set styles in the number, but also set the numbering type for the number.

You can use the list-style-type attribute to specify the number type. The common number types are described as follows:


<! DOCTYPE html> 

Embed text symbols on both sides of the symbol

<! DOCTYPE html> 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.