상자가 크롬, 사파리 및 파이어 폭스에 적합한 색상을 표시합니다. 그러나 IE에서는 상자 색상이 노란색/금색입니다. 내가 겪고있는 문제는 아래 그림을 참조하십시오.IE9에서 상자의 색상이 다릅니 까?
해결 방법?
파이어 폭스 :
IE9 :
<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>
CSS 코드 :
}
.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;
}
,536,913,632
HTML 코드를 (IE에서이 예제를 엽니 다) 10
오프 주제 : ''은 (는) 유효한 HTML 태그가 아닙니다. 그리고 ''은 유효하지만 더 이상 사용되지 않습니다. 두 가지 모두 대신 CSS를 사용해야합니다. 'font-weight : bold'와'text-align : center'를 사용하여. –
SDC
내 대답은 아래를 참조하십시오 : http://stackoverflow.com/a/15089230/1317805. 당신이 받아들이는 대답은 IE9에 고정 된 색을 사용하는 것을 제안하지만, IE9는 '필터'를 사용하여 그라디언트를 잘 지원합니다 (IE6, 7 및 8처럼!). –