asfman
有些事,我们明知道是错的,也要去坚持,因为不甘心;有些人,我们明知道是爱的,也要去放弃,因为没结局;有时候,我们明知道没路了,却还在前行,因为习惯了。
posts - 83,  comments - 145,  trackbacks - 0
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;    
}
Erik Meyer’s CSS Reset
作者将Erik Meyer的代码重新整理了.但功能上还是一样的
这套Css Reset是业内是使用最多的
html, body, div, span, applet, object, iframe, table, caption, tbody, tfoot, thead, tr, th, td,    
del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var,    
h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code,    
dl, dt, dd, ol, ul, li, fieldset, form, label, legend {    
vertical-align: baselinebaseline;    
font-family: inherit;    
font-weight: inherit;    
font-style: inherit;    
font-size: 100%;    
outline: 0;    
padding: 0;    
margin: 0;    
border: 0;    
}    
/* remember to define focus styles! */  
:focus {    
outline: 0;    
}    
body {    
background: white;    
line-height: 1;    
color: black;    
}    
ol, ul {    
list-style: none;    
}    
/* tables still need cellspacing="0" in the markup */  
table {    
border-collapse: separate;    
border-spacing: 0;    
}    
caption, th, td {    
font-weight: normal;    
text-align: left;    
}    
/* remove possible quote marks (") from <q> & <blockquote> */  
blockquote:before, blockquote:after, q:before, q:after {    
content: "";  
}  
blockquote, q {  
quotes: "" "";    
}    
Condensed Meyer Reset
总的来说这是对Erik Meyer的Css 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;    
}    
fieldset, img {    
border: 0;    
}    
table {    
border-collapse: collapse;    
border-spacing: 0;    
}    
ol, ul {    
list-style: none;    
}    
address, caption, cite, code, dfn, em, strong, th, var {    
font-weight: normal;    
font-style: normal;    
}    
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;    
}
posted on 2008-10-27 22:51 汪杰 阅读(3) 评论(0)  编辑 收藏 引用 所属分类: divandcss


标题  
姓名  
主页
验证码 *
内容(提交失败后,可以通过“恢复上次提交”恢复刚刚提交的内容)
 
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
[使用Ctrl+Enter键可以直接提交]
相关链接:




<2009年1月>
28293031123
45678910
11121314151617
18192021222324
25262728293031
1234567

常用链接

留言簿(12)

随笔分类

随笔档案(83)

文章分类(618)

文章档案(595)

收藏夹

http://blog.csdn.net/prodigynonsense

最新随笔

搜索

  •  

积分与排名

  • 积分 - 104839
  • 排名 - 9

最新随笔

最新评论

阅读排行榜

评论排行榜