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

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

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


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


相关文章

div+css背景透明

<div style="filter:alpha(opacity=50);background:#ffffff;width:600;">  ...

一些电脑小常识

1-3、桌面Internet Explorer不见了怎么办方法1:桌面-右键点“属性”->“桌面”选项卡->“自定义桌面&rdq...

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

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

IE6 png 透明 (三种解决方法)

FF和IE7已经直接支持透明的png图了,下面这个主要是解决IE6下透明PNG图片有灰底的=======================================================...

50条网页制作小技巧集锦

控制横向和纵向滚动条的显隐?<body style="overflow-y:hidden"> 去掉x轴<body style="overflow-x:h...

window.open 居中显示__ 绝对好用,不妨试试~~

<script type="text/javascript">function openwindow(url,name,iWidth,iHeight){ &n...