CSS QuickStart-Basic Selector

Source: Internet
Author: User

1. Tag Selector

Element selection via tags.

 <  style  >  a  { font-size  :  10px  ; color  :  red  ;   </ Span style= "color: #800000;" >style  >  
2. *

* represents wildcards, matches any tag, even the body tag, if you set the *, the body will also apply the style.

3. #

#代表ID选择器, the ID must be unique

4,. (point)

On behalf of the class selector, class can be not unique, repeatable, multiple classes can often be seen in bootstrap, but only one ID.

<class= ' tt '><p>Test</  p></div>

Find tags under div with class TT

Div. tt {background-color:red;}

CSS QuickStart-Basic 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.