Front end CSS

CSS (Cascading Style Sheet): defines how to display HTML elements CSS selection Basic selector Element selector p< /span>{color:”red”;} ID selector #i1{
background-color:red;
} Class select

CSS_ 中 中

Centering in CSS can be divided into Horizontal Center and Vertical Center. Horizontal centering can be divided into two cases: in-line element centered and block element centered, while block elem

Common CSS RESET

1, Eric Meyer’s “Reset CSS” 2.0

1 /**
2 * Eric Meyer’s Reset CSS v2.0 (http: //meyerweb.com/eric/tools/css/reset/)
3 * http://cssreset.com
4 */
5 html, body, div, span, applet, object

CSS selector

8. CSS selector 8.1. Tag selector
Function: Set the style for a certain tag specified on the page.
Code:
Label name{
Attribute name 1: Attribute value 2;
Attribute name 2: Attribute value 2;

CSS3 new attribute skills

1. Parity attributes:

/*odd*/

ul li:nth-child (odd){

background-color: green;

}

< em id="__mceDel" style="font-family:'Courier New'; font-size: 12px;"> /*even*/

em>< em id="__mceDel">ul li:nth-child(even){< /em>

< em id="__mceDel">background-color: red;

}

2.