<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      YUI中的css

      YUI中的css(一)——reset.css

          這是YUI中reset.css的原始代碼。

      html{color:#000;background:#FFF;}
      body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,
      fieldset,legend,input,textarea,p,blockquote,th,td
      {margin:0;padding:0;}
      table
      {border-collapse:collapse;border-spacing:0;}
      fieldset,img
      {border:0;} 
      address,caption,cite,code,dfn,em,strong,
      th,var
      {font-style:normal;font-weight:normal;} 
      li
      {list-style:none;}
      caption,th
      {text-align:left;}
      h1,h2,h3,h4,h5,h6
      {font-size:100%;font-weight:normal;}
      q:before,q:after
      {content:'';} 
      abbr,acronym 
      {border:0;font-variant:normal;} 
      /* to preserve line-height and selector appearance */
      sup 
      {vertical-align:text-top;}
      sub 
      {vertical-align:text-bottom;}
      input,textarea,select
      {font-family:inherit;
      font-size:inherit;font-weight:inherit;}

      /*to enable resizing for IE*/
      input,textarea,select
      {*font-size:100%;} 
      legend
      {color:#000;}

          首先,將常見的和容易理解的簡略的說一下。詳見注釋后的reset.css。

      html{color:#000;background:#FFF;}/*設定html文檔的前景色和背景色*/
      body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,
      fieldset,legend,input,textarea,p,blockquote,th,td
      {margin:0;padding:0;}
      /*
      所有的空白邊和內補丁設為0,因為瀏覽器默認有margin和padding且不盡相同。
      我的一般做法是用一個*選擇器選擇所有的元素*{margin:0;padding:0;}*/
      table{border-collapse:collapse;border-spacing:0;}
      fieldset,img
      {border:0;}
      input
      {border:1px solid #fff;}/*我自己添加的,加上這條語句,
      所有的input的邊框樣式都會被重置
      */

      address,caption,cite,code,dfn,em,strong,th,var
      {font-style:normal;
      font-weight
      :normal;}
      /*dfn可標記那些對特殊術語或短語的定義,將默認的斜體或粗體改為一般字體*/
      li
      {list-style:none;}/*去掉列表符號*/
      caption,th
      {text-align:left;}/*默認為居中顯示,改為居左*/
      h1,h2,h3,h4,h5,h6
      {font-size:100%;font-weight:normal;}/*改成一般的字體樣式*/
      q:before,q:after
      {content:'';}/*引用的前后不能有通過before和after偽類添加的內容*/
      abbr,acronym 
      {border:0;font-variant:normal;}/*abbr表示它所包含的文本是一個
      更長的單詞或短語的縮寫形式,acronym表示包含的文本是一個首字母的縮寫詞
      */

      /* to preserve line-height and selector appearance */
      sup 
      {vertical-align:text-top;}
      sub 
      {vertical-align:text-bottom;}
      input,textarea,select
      {font-family:inherit;font-size:inherit;font-weight:inherit;}
      /*to enable resizing for IE*/
      input,textarea,select
      {*font-size:100%;}
      /*because legend doesn't inherit in IE */
      legend
      {color:#000;}

          然后說說YUIreset.css的重要知識點

      1table{border-collapse:collapse;border-spacing:0;}

      border-collapse是表格邊框獨立屬性,當它設為separateborder-spacing為行和單元格的邊在橫向和縱向上的間距。
      border-collapse設為collapse時,設置border-spacingfirefox2中會有效果,而在ie6中沒有效果。

      table { border-spacing: 10px;border:1px solid black; }

      td{border:1px solid #f00;}

       

       

      Firefox2

      ie6

      2fieldset,img{border:0;}
          img一般在作為a元素的子元素的時候會出現邊框,這里把它的邊框消零。而fieldset是將表單內容的一部分打包,
      生成一組相關表單字段(
      html&xhtml權威指南)。在不同的瀏覽器 效果不盡相同。所以要將邊框消零。

      fieldset{} 
      input{border:1px solid #000;}

       

       

      ie6

      firefox2中

      通過設定fieldsetborder0之后,效果有了很大的改變,你會看到我設了inputboder屬性為1像素的黑色實心邊框,
      這是因為在
      ie6firefox2中文本框的默認樣式也不相同。

      fieldset{border:0;} 

      input{border:1px solid #000;}

       

       

      ie6

      firefox2

      3legend{color:#000;}
          legend不會繼承fieldcolor屬性;所以要單獨設legend的文字顏色。

      body{color:#0c0;}

      fieldset{border:0;color:#c00;} 

      input{border:1px solid #000;}

       

       

      firefox2

      ie6

      4input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}

      /*to enable resizing for IE*/

      input,textarea,select{*font-size:100%;}
          在瀏覽器中inputtextarea(文本框),select(多選元素)中的字體都會比父元素的小。

         

       

       

      ie6

      firefox2

      加入input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}會讓firefox2等標準瀏覽器中文
      本框等的字體大小和父元素相同,加入
      input,textarea,select{*font-size:100%;}會讓ie6中文本框等的字體大小和父元素相同。

      input,textarea,select{*font-size:100%;}

      input,textarea,select{font-family:inherit;

      font-size:inherit;font-weight:inherit;}

       

       

      ie6

      firefox2



      posted @ 2008-06-07 02:45  慢熱君Kevin  閱讀(2346)  評論(4)    收藏  舉報
      主站蜘蛛池模板: 草草浮力影院| 日韩精品视频一区二区不卡| 咸宁市| 亚洲一二三区精品与老人| 视频二区国产精品职场同事 | 日夜啪啪一区二区三区| 亚洲伊人久久精品影院| 九九热爱视频精品视频| 少妇高潮喷水惨叫久久久久电影 | 亚洲中少妇久久中文字幕| 日本午夜精品一区二区三区电影| 永久免费观看美女裸体的网站| 久久人妻精品大屁股一区| 久久精品国产再热青青青| 天天做天天躁天天躁| 亚洲熟妇自偷自拍另欧美| 猫咪社区免费资源在线观看| 四虎永久精品在线视频| 极品少妇的粉嫩小泬看片| 察哈| 精品亚洲精品日韩精品| 色二av手机版在线| 福利视频在线一区二区| 欧美丰满熟妇xxxx性大屁股| 久久97超碰色中文字幕| 国内少妇偷人精品免费| 丁香五月亚洲综合在线国内自拍| 最新AV中文字幕无码专区| 中文字幕国产精品一二区| 亚洲AV日韩精品久久久久| 亚洲大尺度一区二区av| 国产成人精品1024免费下载| 亚洲国产成人va在线观看天堂| 深圳市| 熟女一区二区中文字幕| JIZZJIZZ国产| 欧美人与动zozo| 中文字幕 日韩 人妻 无码| 紫金县| 亚洲av午夜成人片| 欧美日韩国产综合草草|