打印

[求助] 浏览器兼容性问题?

用DIV+CSS做页面会在IE5.0,IE5.5,IE6.0,IE7.0中显示不一样,请问一下一般都会碰到哪些问题,以及如何解决浏览器兼容性问题?
初始化一些样式

/* reset */
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,p,blockquote,th,td{margin:0;padding:0;}
table{border-collapse:collapse;border-spacing:0;}
fieldset,img{border:0;}
address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}
ol,ul {list-style:none;}
caption,th {text-align:left;}
h1,h2,h3,h4,h5,h6{font-size:100%;}
q:before,q:after{content:'';}


然后注意清楚浮动,指定宽度高度


后期可以用百分比来指定,前期建议指定PX
承接兼职: www.uicss.cn
也跟着学习了
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,p,blockquote,th,td{margin:0;padding:0;}


上面写那么多,好像用*{padding:0;margin:0;}  就够了吧,呵呵
一个人的路,还是一个人走!

TOP

还在为头像烦恼?还在为不能关注好友动态烦忧?快来蓝色理想家园吧!
非常感谢两位的帮助,相信在以后的工作中会减少不少的麻烦。

TOP


暂时把IE5.0和IE5.5放一边,IE6和IE7先实现吧。
毕竟IE5是要被淘汰的。

TOP