筆記 - HTML5網(wǎng)頁(yè)設(shè)計(jì)初窺(2)

          講師:蘇鵬 
              布局發(fā)展概況
                  網(wǎng)頁(yè)中的布局與塊
                      DIV + id:url重寫(xiě)技術(shù)
                          footer, top, main,
                      亂而無(wú)序
                  新的布局標(biāo)記
                      header,hgroup,article,section,aside,footer
                      專(zhuān)注于內(nèi)容,不專(zhuān)注于形式
                      所有標(biāo)記 http://www.w3.org/TR/html-markup/ 
              新布局元素概述 
              從頭開(kāi)始
                 Header:出現(xiàn)在頁(yè)面最前面的內(nèi)容
                      
                  hgroup:在header里的
                      <header>
                          <img>
                          <hgroup>
                               <h1>
                               <h2>
                           </hgroup>
                      </header>
                  大塊文章
                      <article>
                          <img>
                          <h2>
                          <address>
                          <time>
                      </article>   
                  日期和時(shí)間
                  <address>
                      Written by w3schools.com <br />
                  <a href="mailto:us@example.ort">Email us</a> <br />
                  Address: Box 564, Disneyland<br />
                  Phone:+12 34 56 78
                  </address>
                  
                  <p>I have a date on <time datetime="2008-02-14">Valentines day</time></p>
                  <p>We open at <time>10:00</time> every morning.</p>

                  推薦使用第一種
              Footer    
                  <footer>
                      <p>   
                      <nav>
                          <h3>
                          <div>
                              <a>
                           </div>
                      </nav>
                  </footer>
              區(qū)域與塊
                  Aside
                  section
              整體布局
                  兩類(lèi)控件:內(nèi)容控件+功能控件
              與布局無(wú)關(guān)的
                  Figure
                  Figcaption
                  <figure>
                      <p>A view of the pulpit rok in Norway</p>
                      <img src="img_pulpit.jpg" width="304" height="228" />
                  </figure>
              漢字元素
              Ruby
                  <ruby>
                      韓<rt>safsdf</rt>
                  </ruby>    
              Time
              日期
                  Compontent                 syntax            Example
                  Date                            yyyy-mm-DD    2011-07-13
                  Time with hours             hh:mm            18:28
                  Time with seconds           hh:mm:ss        18:28:05
                  Time with milliseconds       hh:mm:ss.f    18:28:05.2318
                  Date and time                T to join date and 2011-07-12718:28
                                                          time
                  With time zone GMT        Z at the end        2011-07-13T18:28:05Z
                  With time zone as offset    +mm:hh / -mm:hh    2011-07T18:28:05+02:00

          總結(jié):
                  新的布局方式
                      新標(biāo)簽:為搜索引擎提供友好支持,后續(xù)操作的方便。
                                 html4有沒(méi)有辦法一下切換到html5
                   精髓:在API上,為了方便切換到html5,現(xiàn)在規(guī)范css,往html5現(xiàn)有的規(guī)范邊上靠,使用w3c的標(biāo)記。

          posted on 2012-03-04 22:44 joinchen 閱讀(211) 評(píng)論(0)  編輯  收藏


          只有注冊(cè)用戶(hù)登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          <2012年3月>
          26272829123
          45678910
          11121314151617
          18192021222324
          25262728293031
          1234567

          導(dǎo)航

          統(tǒng)計(jì)

          常用鏈接

          留言簿

          隨筆檔案

          搜索

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          主站蜘蛛池模板: 海城市| 六枝特区| 崇义县| 晋江市| 泉州市| 健康| 额敏县| 威宁| 益阳市| 宁安市| 恩施市| 吴桥县| 乌苏市| 太白县| 沐川县| 顺昌县| 团风县| 延吉市| 陆河县| 孙吴县| 甘德县| 阜新| 武川县| 沙湾县| 平武县| 新巴尔虎右旗| 墨竹工卡县| 介休市| 眉山市| 灌南县| 安西县| 万盛区| 郁南县| 略阳县| 清丰县| 奉节县| 花垣县| 屏东市| 黎川县| 启东市| 龙泉市|