该框在 chrome、safari 和 firefox 中显示正确的颜色。但在 IE 中,盒子颜色是黄色/金色。请参阅下面的图片了解我面临的问题。
如何解决这个问题?
火狐:
IE9:
JSFIDDLE(在 IE 中打开这个例子)
HTML 代码:
<div id="container105">
<div class="bubbleouter">
<div class="bubbleinner"><CENTER><BOLD>VUL KOSTENLOOS DE OFFERTE IN EN WIJ BEREKEN DE PRIJS VAN UW SPECIFIEKE RIT<BOLD></CENTER></div>
</div>
</div>
代码:
}
.bubbleouter {
position:relative;
padding:3px;
margin:0;
width:280px;
z-index:99;
background:-webkit-gradient(linear, left top, left bottom, from(#272727), to(#222222));
background:-moz-linear-gradient(top, #272727, #222222);
background:-o-linear-gradient(top, #272727, #222222);
/* css3 */
-moz-border-radius:10px;
-webkit-border-radius:10px;
border-radius:10px;
}
.bubbleouter:after {
content:"";
display:block; /* reduce the damage in FF3.0 */
position:absolute;
top:-13px; /* value = - border-top-width - border-bottom-width */
left:50%; /* controls horizontal position */
margin:0 0 0 -18px;
width:0;
height:0;
z-index:99;
border-width:0 18px 14px; /* vary these values to change the angle of the vertex */
border-style:solid;
border-color:#222222 transparent;
}
.bubbleinner {
position:relative;
padding:15px;
margin:0;
color:#eee;
text-align:center;
z-index:100;
text-shadow:0px -1px 1px rgba(0, 0, 0, 0.8);
background:#f3961c; /* default background for browsers without gradient support */
border-top:1px solid #666666;
/* css3 */
-moz-border-radius:7px;
-webkit-border-radius:7px;
border-radius:7px;
/* NOTE: webkit gradient implementation is not as per spec */
background:-webkit-gradient(linear, left top, left bottom, from(#666666), to(#444444));
background:-moz-linear-gradient(top, #666666, #444444);
background:-o-linear-gradient(top, #666666, #444444);
}
.bubbleinner:after {
content:"";
display:block; /* reduce the damage in FF3.0 */
position:absolute;
top:-13px; /* value = - border-top-width - border-bottom-width */
left:50%; /* controls horizontal position */
margin:0 0 0 -16px;
width:0;
height:0;
z-index:99;
border-width:0 16px 12px; /* vary these values to change the angle of the vertex */
border-style:solid;
border-color:#666666 transparent;
}