我已經編輯在這裏測試過它:Link
你可能想保持無線電,但我不確定你想要什麼尺寸,所以我讓你選擇。這是我改變了代碼:
<div>
<span><img style="width:21%; left: 2%; top: 200px; position: absolute;" class="buttonImg servicesButtonImg" src="http://ec2-50-17-14-144.compute-1.amazonaws.com/Sites/EvergreenPlumbing/Images/services.jpg" alt="" /></span>
<span><img style="width:21%; left: 27%; top: 200px; position: absolute;" class="buttonImg projectGalleryButtonImg" src="http://ec2-50-17-14-144.compute-1.amazonaws.com/Sites/EvergreenPlumbing/Images/ProjectGallery.jpg" alt="" /></span>
<span><img style="width:21%; left: 52%; top: 200px; position: absolute;" class="buttonImg estimateButtonImg" src="http://ec2-50-17-14-144.compute-1.amazonaws.com/Sites/EvergreenPlumbing/Images/Estimate.jpg" alt=""/></span>
<span><img style="width:21%; left: 77%; top: 200px; position: absolute;" class="buttonImg contactUsButtonImg" src="http://ec2-50-17-14-144.compute-1.amazonaws.com/Sites/EvergreenPlumbing/Images/ContactUsSquare.png" alt=""/></span>
</div>
爲
.buttonImgContainer img
{
width:21%;
left: 2%;
top: 200px;
position: absolute;
}
這工作得很好這可能是恢復。注意:如果你內嵌css,你必須刪除標籤class =「buttonImgContainer」,否則Internet Explorer(不知道爲什麼)根本不起作用。它沒有像預期的那樣100%地工作,但它確實體面。
是相同的寬度和高度的圖像? – 2012-04-01 22:05:28
如在:|中我我|我|我或|我我我| ? – 2012-04-01 22:05:35
@Andres,這有什麼關係嗎? – KevinDeus 2012-04-01 22:24:04