欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Css Reset(復(fù)位)的簡單介紹

互聯(lián)網(wǎng)   發(fā)布時間:2008-10-17 19:25:48   作者:佚名   我要評論
Css Reset是什么? 有些同行叫 "css復(fù)位",有些可能叫 "默認(rèn)css"..... 相信看完全文您會對Css Reset有個重新的認(rèn)識 原文地址: http://perishablepress.com/press/2007/10/23/a-killer-collection-of-global-css-reset-styles/ PS: * { paddin

Poor Man’s Reset
其實這也是我們常用的一類Css Reset.對字體的大小復(fù)位,以及圖片鏈接的邊框處理.
也經(jīng)常在某些站點(diǎn)看到
html, body {
padding: 0;
margin: 0;
}
html {
font-size: 1em;
}
body {
font-size: 100%;
}
a img, :link img, :visited img {
border: 0;
}

Shaun Inman’s Global Reset
作者認(rèn)為Shaun寫這類的Css Reset是有某種目的性.
而且這類規(guī)則是針對的是某些重要的常用瀏覽器.
比如ie,firefox等
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre,
form, fieldset, input, p, blockquote, table, th, td, embed, object {
padding: 0;
margin: 0;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
fieldset, img, abbr {
border: 0;
}
address, caption, cite, code, dfn, em,
h1, h2, h3, h4, h5, h6, strong, th, var {
font-weight: normal;
font-style: normal;
}
ul {
list-style: none;
}
caption, th {
text-align: left;
}
h1, h2, h3, h4, h5, h6 {
font-size: 1.0em;
}
q:before, q:after {
content: '';
}
a, ins {
text-decoration: none;
}

Yahoo CSS Reset
yahoo這幫家伙寫的Reset個人覺得可以推薦
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,
fieldset,input,textarea,p,blockquote,th,td {
padding: 0;
margin: 0;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
fieldset,img {
border: 0;
}
address,caption,cite,code,dfn,em,strong,th,var {
font-weight: normal;
font-style: normal;
}
ol,ul {
list-style: none;
}
caption,th {
text-align: left;
}
h1,h2,h3,h4,h5,h6 {
font-weight: normal;
font-size: 100%;
}
q:before,q:after {
content:'';
}
abbr,acronym { border: 0;
}

相關(guān)文章

  • css行內(nèi)元素padding,margin,width,height沒有變化

    這篇文章主要介紹了css行內(nèi)元素設(shè)置padding,margin,width,height沒有變化的解決方法,需要的朋友可以參考下
    2014-05-07
  • css中padding和margin的異同點(diǎn)介紹

    本文從語法結(jié)構(gòu)、可能取的值、瀏覽器兼容問題等方面為大家介紹下padding和margin的異同點(diǎn)另附截圖,有想學(xué)習(xí)的朋友可以參考下哈,希望對大家有所幫助
    2013-07-28
  • CSS邊距屬性定義是用margin還是用padding的兩者對比

    用CSS做網(wǎng)頁時.邊距用哪個屬于好呢?是margin屬性還是padding屬性呢.
    2012-06-12
  • PHPWind7.0風(fēng)格css樣式詳解

    關(guān)鍵字描述:詳解 樣式 風(fēng)格 solid 必要   修改 padding:0 margin:0 body{font-size:9pt; background:url($imgpath/$stylepath/bodybg.gif) repeat-x ; font-famil
    2009-06-06
  • Z-BLOG模板CSS默認(rèn)樣式注釋大全

    關(guān)鍵字描述:注釋 大全 樣式 默認(rèn) 模板 定義 margin:0 10px padding:0 下面這個是默認(rèn)的ZBLOG CSS樣式表 里面附帶有最全的CSS注釋 讓你一看就理解了。如果您覺得麻煩
    2009-06-06
  • 簡化的CSS Reset:15套CSS重設(shè)實例

    網(wǎng)頁制作Webjx文章簡介:CSS重設(shè)就是由于各種瀏覽器解釋CSS樣式的初始值有所不同,導(dǎo)致設(shè)計師在沒有定義某個CSS屬性時,不同的瀏覽器會按照自己的默認(rèn)值來為沒有定義的樣式
    2009-04-02
  • CSS中margin和padding的區(qū)別淺析

    在CSS中margin是指從自身邊框到另一個容器邊框之間的距離,就是容器外距離。在CSS中padding是指自身邊框到自身內(nèi)部另一個容器邊框之間的距離,就是容器內(nèi)距離。下面講解 pa
    2017-06-26

最新評論