某某:’经理让你兼容ie浏览器’。
我的内心:’$%!%&+~#@’。
1.html代码写法不标准。
有的html代码不够严谨,就会造成在ie浏览器下各种的问题。比如标题,最好不要直接用li标签,最好外面有个div包裹,li列表外面需要有ul标签包裹。应该加载一段公共css代码,去除某些样式的默认初始属性。
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,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;}
li{list-style:none;list-style-position:outside;}
caption,th{text-align:left;}
h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}