我有這個只支持Firefox的CSS代碼。如何重寫IE瀏覽器的這個CSS
/* Green header */
.container {
background: linear-gradient(#5FA309, #3B8018);
position: relative;
display: inline-block;
padding: 0 20px 0 10px;
width: 270px;
line-height: 20px;
font-size: 12px;
font-family: sans-serif;
text-shadow: 0 1px 0 #264400;
font-weight: bold;
color: #fff;
}
.container:after {
content: '';
background: linear-gradient(top left, #5FA309, #3B8018);
background: -webkit-gradient(linear, left top, left bottom, from(#5FA309), to(#3B8018));
background: -moz-linear-gradient(top left, #5FA309, #3B8018);
position: absolute;
top: 3px; right: -7px;
width: 15px;
height: 15px;
transform: rotate(45deg);
}
我怎樣才能讓這段代碼也支持IE?我只想使用沒有圖像的CSS。
從哪個IE版本? – nhahtdh
我想支持最新的IE版本。 –
你確定? IE10是最新版本,但IE用戶的一半仍然使用IE8。 http://en.wikipedia.org/wiki/Internet_Explorer#Desktop_Market_share_by_year_and_version – nhahtdh