css style introduced

1, css there are four ways to introduce, within the line, embedded, link type, lead-in type. In which the lead-in type, generally do not, because it will be loaded html, then the import will lead to a page without style effect, with priorities Yes. Inline type> Embedded> link type.

Inline style

<span style = " Color: Red; " > inline type </ span>   
directly written in html tag

Embedded

// writing style tag css style 
P { 
    Color: Blue; 
}

Links style

<link the href = " test.css " type = " text / CSS " the rel = " this stylesheet " /> 
written in the link tag

 

Guess you like

Origin www.cnblogs.com/Nolover/p/11428148.html