CSS 3 Property Selector

Source: Internet
Author: User

CSS 3 Selector

=========================================================================================

Property Selector

=========================================================================================

[Property name ^= value]--[href^= "#"]----Select all HREF elements that begin with #


[Property name $= value]--[href$= "PDF]"---Select all href elements that end in PDF


[Property name *= value]--[href*= "www"]---Select all href elements that contain www


------in CSS 2--------------------------------------------------------


[Property name |= value]--[lang|= "en"]---Select an element in the lang attribute that is equal to en or that begins with EN


[Property name ~= value]--[class~= "big"]---Select the element containing big in the class attribute


[Property name = value]--[class= "text"]---Select the element with the class attribute equal to Text


[Property name]---[Class]---Select the element with the class attribute in the page


650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/80/2B/wKiom1c5syKRFOyWAAKY2QiQeB0712.png "title=" Property selector. png "alt=" Wkiom1c5sykrfoywaaky2qiqeb0712.png "/>



CSS 3 Property Selector

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.