demo43- conversion method

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
        <style type="text/css">
            div{
                width: 300px;
                height: 300px;
                background: pink;
                /*
                 display: inline;Represents a row within the display tag 
                the display* /
                 *: Inline ; 
            } 
            A { 
                width : 300px by ; 
                height : 300px by ; 
                background : Yellow ; 
                / * 
                 the display: Block; shown as block tags 
                 * * / 
                the display : Block ; 
                / * 
                 the display: inline-Block; show the row block tag, a , span, label tag provided three times the width and height must be converted to the inline-block can set the width and height 
                 * * / 
                the display : inline-block ; 
            } 
        </style > 
    </ head > 
    <-! 
        conversion between tags 
    -> 
    < body > 
        <-! 
            div turn the tab row 
        -> 
        < h1 of > the transfer block rows div tag in the tag </ h1 of > 
        < div > 
            I is a div block label 
        </ div > 
        <-! 
            inline transfected into blocks 
        -> 
        < h1 of > inline transfected into blocks </ h1 of > 
        < a the href = "#" > I inline tag </ a > 
    </body>
</html>

Display effects:

 

Guess you like

Origin www.cnblogs.com/huaibin/p/12588547.html