• 欢迎访问小辉博客,有访必回!广告为已更换为百度联盟,希望随手点下,虽然博客是兴趣所在,但也想有一个良性循环!请大家谅解!

清除所有默认的CSS样式

编程相关 小辉 286次浏览 已收录 0个评论 扫描二维码

做前端的必备,所以搜集了一下

        1.

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, font, 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,p {
 margin: 0;
 padding: 0;
 border: 0;
 outline: 0;
 font-size: 100%;
 vertical-align: baseline;
 background: transparent;
}

        2.

html,body,div,span,iframe,map,font,img,a img,samp,strong,hr,

h1,h2,h3,h4,h5,h6,b,p,blockquote,a,address,code,dl,dt,dd,ol,

ul,li,form,label,table,tr,td,th{padding:0;margin:0;border:0;font-weight:normal;

font-size:12px;font-family: Arial, Helvetica, sans-serif; color:#000;}

body{background: #fff;}ul,li{list-style:none;}dl{}.f_l{float:left;}.f_r{float:right;}


3.

/* Eric Meyer v1.0 – 2008-02-12 */

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, font, 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 {margin: 0; padding: 0; border:

 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent;}

body {line-height: 1;}

ol, ul {list-style: none;}

blockquote, q {quotes: none;}

blockquote:before, blockquote:after, q:before, q:after {content: ’’; content: none;}

/* remember to define focus styles! */

:focus {outline: 0;}

/* remember to highlight inserts somehow! */

ins {text-decoration: none;}

del {text-decoration: line-through;}

/* tables still need ’cellspacing=”0″’ in the markup */

table {border-collapse: collapse; border-spacing: 0;}

4.

body, div, dl, dt, dd, ul, ol, nl, li, h1, h2, h3, h4, h5, h6, p, span, a,

 b, strong, object, iframe, label, img, select, form, input, textarea,

 table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas,

 details, figcaption, figure, footer, header, hgroup, menu, nav,

 section, summary, time, mark, audio, video {margin:0;padding:0}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, 

section {display:block}

table {border-collapse:collapse;border-spacing:0}

a {text-decoration:none} 

a:hover {text-decoration:underline}

ul, ol {list-style:none outside none} 

fieldset, img {border:0 none}

textarea {resize:none}

input:focus, select:focus, textarea:focus {outline:0 none}


小辉博客 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明清除所有默认的CSS样式

喜欢 (0)
[cnbzzh@qq.com]
分享 (0)
小辉
关于作者:
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址