我在網頁上製作了一個背景圖片。該圖像集中在Chrome瀏覽器,Safari,Firefox ...但它不會集中在IE 9(不知道其他版本的IE)。背景圖片不會以IE 9爲中心
這裏的CSS:
#page {
background-image: url(images/mountain2.jpg);
text-align: center;
margin-top: -50px;
margin-right: auto;
margin-left: auto;
background-repeat: no-repeat;
background-color: #6C86FF;
width:1292;
height:972;
}
(#page,是整個網站的div標籤。)
幫助,非常感謝。 =)
請記住添加單位(除非值爲'0')。你的「寬度」和「高度」缺乏它們。 – 2012-03-25 19:18:04