【发布时间】:2013-12-01 16:00:50
【问题描述】:
您好,我正在设计一个小型网站,它可以在 IE9 Crome 和 Firefox 上完美呈现。但不是在 IE8 中。 te 图像不符合设计,并且不受限制。 html片段:
<div id="MainImage1"><img src="Stores/DigitalExperience/ArticleImages/mainBanner.jpg" border="0" width="100%"></div>
<div id="product-table">
<div id="product1" class="product-column">
<a href="Main.asp?D=%7BF526E79F%2D78C3%2D4703%2D9CF5%2D4CEF53FCD0D7%7D&PageType=Product&SKU=GAL-I9190-WHT"><img src="Stores/DigitalExperience/ProductImages/S4MINIWHT_small.jpg" valign="middle" border="0"> SAMSUNG GALAXY S4-WHITE</a>
</div>
<div id="product2" class="product-column">
<a href="Main.asp?D=%7BF526E79F%2D78C3%2D4703%2D9CF5%2D4CEF53FCD0D7%7D&PageType=Product&SKU=GAL-I9500-BLK"><img src="Stores/DigitalExperience/ProductImages/s4-i9500_small.jpg" valign="middle" border="0"> GALAXY SAMSUNG S4 BLK</a>
</div>
<div id="product3" class="product-column">
<a href="Main.asp?D=%7BF526E79F%2D78C3%2D4703%2D9CF5%2D4CEF53FCD0D7%7D&PageType=Product&SKU=UA32F5500-1-000"><img src="Stores/DigitalExperience/ProductImages/UA32F5500_small.jpg" valign="middle" border="0"> 32 INCH LED TV</a>
</div>
那么样式化这段代码的 CSS 是这样的:
#MainImage1 {
border-style: solid;
border-width: 1px;
border-color: #0000ff;
-webkit-border-top-right-radius: 25px;
-webkit-border-bottom-left-radius: 25px;
-moz-border-radius-topright: 25px;
-moz-border-radius-bottomleft: 25px;
border-top-right-radius: 25px;
border-bottom-left-radius: 25px;
margin: 0;
padding:0;
}
#product-table{
display: table;
}
#product-table .product-column {
-webkit-border-top-right-radius: 25px;
-webkit-border-bottom-left-radius: 25px;
-moz-border-radius-topright: 25px;
-moz-border-radius-bottomleft: 25px;
border-top-right-radius: 25px;
border-bottom-left-radius: 25px;
border-style: solid;
border-width: 1px;
border-color: #0000ff;
display: table-cell;
width: 30%;
padding: 10px;
}
#product-table .product-column:nth-child(even) {
background: #ccc;
}
#product-table .product-column:nth-child(odd) {
background: #eee;
}
TD.MainAreaText img {
-webkit-border-top-right-radius: 25px;
-webkit-border-bottom-left-radius: 25px;
-moz-border-radius-topright: 25px;
-moz-border-radius-bottomleft: 25px;
border-top-right-radius: 25px;
border-bottom-left-radius: 25px;
position: relative;
}
关于如何使这段代码在 IE8 中呈现得体的任何想法,我现在在 IE8 中不需要圆形边框,我只需要设计中的网站图像脚。 提前谢谢你
【问题讨论】:
标签: html css image internet-explorer styles