首页 > 其他 > 详细

理念:清除和重置是紧密不可分的

时间:2014-01-16 21:41:12      阅读:383      评论:0      收藏:0      [点我收藏+]
理念:清除和重置是紧密不可分的
特色:1.适应中文 2.基于最新主流浏览器 /* 清除内外边距 */ body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li, pre, fieldset, lengend, button, input, textarea, /* form elements 表单元素 */ th, td { margin: 0; padding: 0; }
 

/* 设置默认字体 */
body,
button, input, select, textarea { /* for ie */
    /*font: 12px/1 Tahoma, Helvetica, Arial, "宋体", sans-serif;*/
    font: 12px/1 Tahoma, Helvetica, Arial, "\5b8b\4f53", sans-serif; 
}

h1 { font-size: 18px; /* 18px / 12px =
1.5 */ } h2 { font-size: 16px; } h3 { font-size: 14px; } h4, h5, h6 { font-size: 100%; } address, cite, dfn, em, var { font-style: normal; } code, kbd, pre, samp, tt { font-family: "Courier New", Courier, monospace; } small { font-size: 12px; } /* 重置列表元素 */ ul, ol { list-style: none; } /* 重置文本格式元素 */ a { text-decoration: none; } a:hover { text-decoration: underline; }
/*重置结束*/

理念:清除和重置是紧密不可分的

原文:http://www.cnblogs.com/lxf1016/p/3521277.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!