淘宝的样式初始化:

body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li, pre, form, fieldset, legend, button, input, textarea, th, td { margin:; padding:; }
body, button, input, select, textarea { font:12px/1.5tahoma, arial, \5b8b\4f53; }
h1, h2, h3, h4, h5, h6{ font-size:100%; }
address, cite, dfn, em, var { font-style:normal; }
code, kbd, pre, samp { font-family:couriernew, courier, monospace; }
small{ font-size:12px; }
ul, ol { list-style:none; }
a { text-decoration:none; }
a:hover { text-decoration:underline; }
sup { vertical-align:text-top; }
sub{ vertical-align:text-bottom; }
legend { color:#000; }
fieldset, img { border:; }
button, input, select, textarea { font-size:100%; }
table { border-collapse:collapse; border-spacing:; }
常规的样式初始化:
html, body, div, span, applet, object, iframe,h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin:;
padding:;
border:;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height:;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing:;
}
常规的样式初始化:
/**
* Eric Meyer's Reset CSS v2.0 (http://meyerweb.com/eric/tools/css/reset/)
* http://cssreset.com
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header,
menu, nav, output, ruby, section, summary,
time, mark, audio, video, input {
margin:;
padding:;
border:;
font-size: 100%;
font-weight: normal;
vertical-align: baseline;
} /* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, menu, nav, section {
display: block;
} body {
line-height:;
} blockquote, q {
quotes: none;
} blockquote:before, blockquote:after,
q:before, q:after {
content: none;
} table {
border-collapse: collapse;
border-spacing:;
} /* custom */
a {
color: #7e8c8d;
text-decoration: none;
-webkit-backface-visibility: hidden;
} li {
list-style: none;
} ::-webkit-scrollbar {
width: 5px;
height: 5px;
} ::-webkit-scrollbar-track-piece {
background-color: rgba(0, 0, 0, 0.2);
-webkit-border-radius: 6px;
} ::-webkit-scrollbar-thumb:vertical {
height: 5px;
background-color: rgba(125, 125, 125, 0.7);
-webkit-border-radius: 6px;
} ::-webkit-scrollbar-thumb:horizontal {
width: 5px;
background-color: rgba(125, 125, 125, 0.7);
-webkit-border-radius: 6px;
} html, body {
width: 100%;
} body {
-webkit-text-size-adjust: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

css重置(pc)

@charset "utf-8";
/* CSS Document */
body{ width:902px; margin:0 auto; font-size:12px;}/*设置页面中所有大的div宽度为902px,并且自动居中*/
ul,li,ol{ list-style:none;}/*去掉列表的项目符号*/
*{ margin:; padding:;}/*去掉所有标签之间自带的间隙*/
a{ text-decoration:none;}/*去掉超链接的下划线*/
h1,h2,h3,h4,h5{ font-size:14px;}/*设置标题大小为14px*/
img,select,input,textarea{ vertical-align:middle;}/*设置图片以及表单元素垂直居中对齐*/
img{ border:none;}/*去掉图片加完链接之后的边框*/
												

最新文章

  1. BZOJ 4742: [Usaco2016 Dec]Team Building
  2. PostgreSQL配置优化
  3. Altium Designer 15 --- Make 3D PCB Library with Rhinoceros
  4. js字节转换、字节转换GB等
  5. 从零开始安装Hadoop视频教程
  6. 无废话网页重构系列——(6)HTML主干结构:站点(site)、页面(page)
  7. 使用GitHub进行协同项目开发和开源项目贡献
  8. (转)C#中的委托,匿名方法和Lambda表达式
  9. Myeclipse6.5配置反编译插件
  10. Data Guard相关参数学习介绍
  11. Android:WebView(慕课网)
  12. python学习笔记4-切片
  13. Python爬虫之多线程下载豆瓣Top250电影图片
  14. retry示例
  15. UOJ#53. 【UR #4】追击圣诞老人 树链剖分 k短路
  16. 【转】java提高篇之理解java的三大特性——多态
  17. swiper添加了自动滚动效果,然后用手指划过页面,发现自动滚动效果不生效了
  18. JDBC使用步骤分哪几步?
  19. CJB的大作
  20. VS2017专业版使用最新版Qt5.9.2教程

热门文章

  1. 线段树练习 3&&P3372 【模板】线段树 1
  2. Git学习笔记(一)创建版本库并添加文件
  3. CentOS 7安装redis及php扩展
  4. yarn计算一个节点容量及其配置项
  5. JavaEE XML XSL转换(XSLT)
  6. 问题记录1:The VMware Authorization Service is not running.
  7. swift3.0 原生GET请求 POST同理
  8. XTU 1245 Hamiltonian Path
  9. [HMLY]3.如何使用Xcode Targets管理开发和生产版本?
  10. Jersey+Spring+Maven环境搭建