Home > Article > Web Front-end > ie compatibility issue_html/css_WEB-ITnose
1. Set rounded corners for ie8 and add iecss3.htc in the root directory (i explains the vector language of ie8, which is a plug-in written in js, although the suffix name is not js)
<style type="text/css"> body { padding-top: 70px; } .yuan { border: 2px solid #C0C0C0; -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; position:relative; padding:5px; background:#FFF; z-index:2; width:330px; height:200px; behavior: url(iecss3.htc) } </style><body> <div class="yuan"> DIVCSS5圆角实例<br> CSS3版本圆角实例,<br> 支持低版本IE6-IE9浏览器 </div></body>
2. Transparency problem in ie,
.a{ background:#FF0000; opacity:0.5;/*不透明度,支持非IE,会影响子元素透明度*/ filter:alpha(opacity=50);/*不透明度,支持IE,会影响子元素透明度*/}.b{filter:progid:DXImageTransform.Microsoft.gradient(enabled='true',startColorstr='#7FFF0000', endColorstr='#7FFF0000');/*支持IE,不透明度,包括颜色的*/background:rgba(255,0,0,0.5);/*支持非IE,不透明度,包括颜色的*/
.transparent{ /* IE 8 */ -ms-filter: "progidXImageTransform.Microsoft.Alpha(Opacity=50)"; /* IE 5-7 */ filter: alpha(opacity=50); /* Netscape */ -moz-opacity: 0.5; /* Safari 1.x */ -khtml-opacity: 0.5; /* Good browsers */ opacity: 0.5;}
3. Remove the dotted line after clicking on a in ie
2734715eac6686642fb0869634d538e95db79b134e9f6b82c0b36e0489ee08ed
outline:none;border :none;