Firefox img 显示有问题。我的页面包含产品描述:
<article id="productPhoto">
<img id="prodImg" src="prova.jpg" />
</article>
<article id="productDesc">
<h3 id="prodName"></h3>
<h3 id="prodDesc"></h3>
</article>
CSS是这样的:
#productPhoto{
float: left;
width: 50%;
height: 81%;
text-align: center;
}
#productPhoto img{
height: 80%;
}
#productDesc{
float: right;
width: 50%;
}
#prodName{
font-size: xx-large;
padding: 10px;
}
现在,img prova.jpg 非常大(宽度:2676px,高度:2068px)。使用 Chrome,img 的大小调整为#productPhoto 的 80%,但 firefox 没有,所以如果我在 Firefox 中看到我的页面,img 是巨大的!!!:( 一些建议?
谢谢你,卢卡