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

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

snuday15年前 (2011-03-14)站长必备932


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


相关文章

http://www.6006.cc/ 主页被修改的修复方法

过卡巴斯基key获取器之后浏览器主页被劫持为6006.cc,桌面原IE图标被替换成6006.cc的快捷方式,且自定义桌面选项里面的IE也被删除了。用金山清理专家清理无效。hijackthis也没发现异...

Internet Explorer 6 Bugs 解决方法

1、终极方法:条件注释<!--[if lte IE 6]> 这段文字仅显示在 IE6及IE6以下版本。 <![endif]--><!--[if gte IE 6]>...

CSS完美兼容IE6/IE7/FF的通用方法

关于CSS对各个浏览器兼容已经是老生常谈的问题了, 网络上的教程遍地都是.以下内容没有太多新颖, 纯属个人总结, 希望能对初学者有一定的帮助.一、CSS HACK 以下两种方法几乎能解决现今所有HAC...

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...

phpcms2008_标题列表_分隔效果

phpcms2008_标题列表_分隔效果

现在用phpcms2008默认模板改造一下:首先:找到:后台-->模板风格-->模板管理-->[标签]内容列表tag_content_list.html  点击后面修改复制...