: After with:: After difference

Source: Internet
Author: User

1.: After is written in CSS to add new content after the tag such as p:after{: "Add text"; Color: #f00;   Font-weight:bold; }

2.:: After is an element that is written in HTML after adding new content such as div::{content: "url (.. /img/1.jpg) "; Background-color: "#ff0";}

A single colon (:) syntax is supported for all browsers that support CSS3 double colon (::) syntax, but IE8 only supports single colons. It is recommended to use only a single colon for best browser support.

A double colon (::) is a new syntax that distinguishes a pseudo-element selector from a pseudo-element. If you do not need IE8 support, use a double colon (::).

: After with:: After difference

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.