SlideShare une entreprise Scribd logo
1  sur  33
Web Standard #2
      @EBvi
•

•

• HTML
css
<head>
    <title>     </title>
    <link rel=”stylesheet” media=”all” type=”text/css”
    href=”hello.css” />
    <script type=”text/javascript” src=”jquery.js”></script>
</head>
...

• .js            .css

•
<link>
                 @import
•   <link rel=”stylesheet” type=”text/css” href=”hello.css” />

•   <style type=”text/css”>

    @import url(hello.css);

    </style>




•   IE6-7                       link
id        class

• css
  id      class

• id

• class
• <div id=”header”></div>

• <div id=”content”></div>

• <div id=”footer”></div>



• <p class=”introduce”></p>

• <span class=”warning”></span>
id


• <div id=”nav”></div>

  <a href=”#nav”>        </a>
• header, content, footer, sub, nav, sidebar, metadata,
    introduce ... (O)

• italic, red, blue, high ... (X)



•


•
CSS
            *
            #           id
             .         class
            >         (            )
             :
            []

•                   http://www.w3.org/TR/CSS2/
    selector.html
• #header {}

• .title {}
                     • div#time p strong {}
• div.park {}
                     • th, td {}
• table > tbody {}
                     • *[lang=ko]
• input[alt] {}

• a:link {}
• h1 { font-family: sans-serif }

  h2 { font-family: sans-serif }

  h3 { font-family: sans-serif }




• h1, h2, h3 { font-family: sans-serif }
•*

•

• css



•
IE


• input[alt] {}

• IE7                  ,
            ,

•
CSS
       • 1. display                        • 8. border / background

       • 2. list-style                     • 9. color / font

       • 3. position                       • 10. text-decoration

       • 4. float                           • 11. text-align / vertical-align

       • 5. clear                          • 12. white-space

       • 6. width / height                 • 13. other text

       • 7. padding / margin               • 14. content

http://www.clearboth.org/wiki/doku.php?id=document:css:ordering_properties
display
• block :

• inline :

• none :



• table      IE9

• inline-block     IE8
display=block

•          width

•          height

• block   inline

• css     width/height
display=inline

•

• width    height


•       inline

• css            width/height
• <p> <table> <form> <ul> <li> <h1> <div>
       block

• <span> <strong> <a> <em> <img> <br> <input>
               inline




•※
position
 static
absolute         offset
 fixed                      (IE7+)

relative         offset
inherit               (IE8+)
position=static


• top, left, right, bottom   offset
position=relative


• offset

•              offset
    relative
position=absolute


•              offset

• z-index
float

left      float


right       float


none
clear
left    float

right     float

both    float

none
• <div style=”float:left”></div>

• <div style=”float:right”></div>

• <div style=”clear:both”></div>
IE6


• float             margin


• display:inline
IE6 Duplicate
         Character bug
• float                 display:none




• display:inline   ,
•



• hack

•        hack
padding / margin /
     border
padding / margin /
     border
Box model Problem

•                 width
            IE
    border, padding
      width



• DTD
• css

• id          , class

• hack

• Box model
Web standard 2

Contenu connexe

Plus de Eb Styles

잘 알고 있습니까? html + css &lt;#1>
잘 알고 있습니까? html + css &lt;#1>잘 알고 있습니까? html + css &lt;#1>
잘 알고 있습니까? html + css &lt;#1>Eb Styles
 
보다 나은 웹 어플리케이션 설계
보다 나은 웹 어플리케이션 설계보다 나은 웹 어플리케이션 설계
보다 나은 웹 어플리케이션 설계Eb Styles
 
Web accessibility
Web accessibilityWeb accessibility
Web accessibilityEb Styles
 
Web accessibility
Web accessibilityWeb accessibility
Web accessibilityEb Styles
 
Javascript Tip and Triks
Javascript Tip and TriksJavascript Tip and Triks
Javascript Tip and TriksEb Styles
 

Plus de Eb Styles (7)

잘 알고 있습니까? html + css &lt;#1>
잘 알고 있습니까? html + css &lt;#1>잘 알고 있습니까? html + css &lt;#1>
잘 알고 있습니까? html + css &lt;#1>
 
보다 나은 웹 어플리케이션 설계
보다 나은 웹 어플리케이션 설계보다 나은 웹 어플리케이션 설계
보다 나은 웹 어플리케이션 설계
 
Web accessibility
Web accessibilityWeb accessibility
Web accessibility
 
Web accessibility
Web accessibilityWeb accessibility
Web accessibility
 
Css3
Css3Css3
Css3
 
Doctype
DoctypeDoctype
Doctype
 
Javascript Tip and Triks
Javascript Tip and TriksJavascript Tip and Triks
Javascript Tip and Triks
 

Web standard 2

Notes de l'éditeur

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. \n
  21. \n
  22. \n
  23. \n
  24. \n
  25. \n
  26. \n
  27. \n
  28. \n
  29. \n
  30. \n
  31. \n
  32. \n