CSS Common and mastering knowledge points

Source: Internet
Author: User

Outreach via link label

Selector Selector

Tag Selector Div

Class selector.

ID Selector #

Multiple available "," separated

Child element Selector parent > Direct Child

Media Queries @media trouble with it.

  

 

Style

Font style

Font:bold Italic Size/line-height family; Can be divided into writing

Font-size font-weight Font-style font-family

COLOR:RGB/COLOR/16 in the system

Background style

Background:url () color repeat x y (center/top/bottom/right/left);

Text Style

Text-align:center/right/left;

Text-index:2em the first line indent two words or negative values are hanging indents

Word-spacing: Positive and negative numbers change the distance between words and words.

Letter-spacing positive Negative number change is the distance between the word and the negative number closer

Text-decoration:none/underline/overline/line-through Underline

Line-height: Line Spacing

Box size

Width

Height

Edge Distance

Margin:top Right bottom left auto (presence compatible);

padding: Ditto and can be divided

Border

Border:size solid/dotted/dashed Color | None

Position

position:relative/absolute/fixed;

Vertical-align:top/bottom/center;

Float:left/right/none;

Clear:both: Clear Float

FORM element Style

Outline:none: Common and clear default styles

Other styles:

Li List-style style common and clear default styles

Cursor:pointer; a finger.

Display:none/block/inline/inline-block;

Visibility:hidden/visible

option:0~1;

Filter:alpha (opacity=1~100);

Pseudo class Selector

A:link before visit

After a:visited access

A:hover Move in

A:active Click

The order cannot be changed when four is present simultaneously

Rules

Text styles can inherit, but their own styles do not inherit

Margin merge easy to merge when set up

  

CSS Common and mastering knowledge points

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.