ie compatibility issue_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:54:45
Original
865 people have browsed it

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>
Copy after login

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,不透明度,包括颜色的*/
Copy after login

.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;}
Copy after login

3. Remove the dotted line after clicking on a in ie

outline:none;border :none;

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template