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

Css Reset(復(fù)位)方法整理第2/3頁

 更新時(shí)間:2008年09月12日 10:27:14   作者:  
Css Reset是什么? 有些同行叫 "css復(fù)位",有些可能叫 "默認(rèn)css".....

Poor Man's Reset
其實(shí)這也是我們常用的一類Css Reset.對字體的大小復(fù)位,以及圖片鏈接的邊框處理.
也經(jīng)常在某些站點(diǎn)看到

復(fù)制代碼 代碼如下:

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等

復(fù)制代碼 代碼如下:

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個(gè)人覺得可以推薦

復(fù)制代碼 代碼如下:

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)文章

最新評(píng)論