The next CSS

CSS

   1. css is a cascading style sheet.

   2. Use the benefits:

       css more powerful; reducing the coupling lines of code.

   3. Place Location:

      Inline style: <div style = ""> </ div>

      Internal Style: <style> selector {} </ style>

      External style: divided into two chains of formula and introducing the formula

            Links the formula: <link href = "" rel = "">

            Introducing the formula: <style> @import url ( "path") </ style>

   4. The writing specifications

      <Style> {selector attribute names: Property Value; .........} </ style>

   The three basic selector

      Element selector

      ID selector (#)

      Class selector (.)

   6.css style

      Layout: float float

        Format :

          Selector {float: Property Value ;}

        Common property values:

          none : no floating element (default)

          left : left floating element

          right : the right floating elements

       clear Clear float

          Selector {clear: Property Value}

          Attribute values: left, right, both (common) sides of the floating scavenging simultaneously the left and right

   7.display (conversion) 

      Line level elements turn into block-level element; block element rows transfected level elements.

       Selector {display: attribute value}

        Common property values:

          block: This element is displayed block elements

          inline: This element is displayed inline elements.

          none: This element is hidden, do not show, do not take up page space

              

 

 

Guess you like

Origin www.cnblogs.com/anlin981121/p/11330817.html
css