当前位置:首页 > 站长必备 > CSS兼容必备完美实现Firefox、IE6、IE8、Mac等主流浏览器,所有元素清零

CSS兼容必备完美实现Firefox、IE6、IE8、Mac等主流浏览器,所有元素清零

snuday16年前 (2011-03-14)站长必备953


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;
}


相关文章

百度搜索竟然自动跳转Google

         百度搜索竟然自动跳转Google,在网上查了下,大家都认为是Google工具条或是恶意篡改主页,我发现...

IE多版本共存的解决方案——IETester(推荐)

IE多版本共存的解决方案——IETester(推荐)

 软件名称  IETester v0.4.2 软件大小   25.04 MB软件类别  国产软件/辅助工具运行环境  Win95, Win9...

CSS选择符命名原则

举个例子,我们需要在一段文字里将某些词标红。所以为此建了一个DE>.red { color: red; }DE>。结果产品经理觉得,红色太刺眼了,改成橘色比较好吧。这下头大啦,难道写成DE...

discuz {BOARDLOGO} 等系统标签修改目录

默认就是你论坛的名称。如果你还想修改成其他的,你可以编辑include\cache.func.php找到:$data['boardlogo'] = image($data['boardimg'], $...

css制作菜单上浮动new小图标

<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"...

zblog添加google adsense

      文中参考和引用了一些ZBLOG论坛和网友的资料,在此对这些资料的作者表示深深的感谢。 由于部分资料有较多类似版本,短时间内找不到原作者,所...