我只有 IE9 有问题,原因......边界半径仅在一个 div 中不起作用,但在其他 div 中完美。
IE9
IE10、铬、FF
html
<article id="main-login">
<div class="radius-10 shadow"></div>
<div id="area-login" class="radius-10 shadow">
<h2>Iniciar sesión</h2>
<p><input id="user-user" class="radius-10" type="text" placeholder="Usuario" required/></p>
<p><input id="user-pass" class="radius-10" type="password" placeholder="Contraseña" required/></p>
<p><input id="do-login" type="submit" value=""/></p>
<small>Si aún no eres usuario</small>
<medium>Registrate aquí</medium>
</div>
</article>
CSS
.radius-10 {
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
.shadow {
-webkit-box-shadow: 0px 1px 12px rgba(50, 50, 50, 0.75);
-moz-box-shadow: 0px 1px 12px rgba(50, 50, 50, 0.75);
box-shadow: 0px 1px 12px rgba(50, 50, 50, 0.75);
}
#main-login {
margin-top: 25px;
width: 100%;
}
#main-login div {
display: inline-block;
height: 170px;
vertical-align: top;
}
#main-login > div:first-child {
background: url(../media/images/medicos.jpg) no-repeat;
background-attachment:fixed;
margin-right: 20px;
overflow: hidden;
width: 73%;
}
#area-login {
background: rgb(255,255,255); /* Old browsers */
/* IE9 SVG, needs conditional override of 'filter' to 'none' */
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSI4MiUiIHN0b3AtY29sb3I9IiNmZmZmZmYiIHN0b3Atb3BhY2l0eT0iMSIvPgogICAgPHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjZTVlY2VmIiBzdG9wLW9wYWNpdHk9IjEiLz4KICA8L2xpbmVhckdyYWRpZW50PgogIDxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9InVybCgjZ3JhZC11Y2dnLWdlbmVyYXRlZCkiIC8+Cjwvc3ZnPg==);
background: -moz-linear-gradient(top, rgba(255,255,255,1) 82%, rgba(229,236,239,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(82%,rgba(255,255,255,1)), color-stop(100%,rgba(229,236,239,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(255,255,255,1) 82%,rgba(229,236,239,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(255,255,255,1) 82%,rgba(229,236,239,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(255,255,255,1) 82%,rgba(229,236,239,1) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(255,255,255,1) 82%,rgba(229,236,239,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e5ecef',GradientType=0 ); /* IE6-8 */
width: 24%;
}
更新
感谢您的时间,但我解决了我的问题。
解决方案:在 CSS 中使用border-radius 和filter 存在问题,那么只需注释这一行:
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e5ecef',GradientType=0 ); /* IE6-8 */
并且工作正常!!