0
我的測試網站在計算機瀏覽器上看起來不錯,但是在iPhone上(我假設有其他移動設備),它並不集中於內容或背景。在iPad上,它不是以背景爲中心,而是以內容爲中心。爲什麼我的網站不在移動設備或ipad的頁面上?
這裏是我的CSS的一部分:因爲你的#social股利
body {
background-image:url(../images/background.jpg);
background-color:#000;
background-repeat:repeat-y;
background-position:center top;
font-family:"Courier New", Courier, monospace;
font-weight:bold;
}
#container {
width:1000px;
margin:auto;
overflow:hidden;
padding: 0;
}
#header {
height:145px;
}
#nav {
height:50px;
margin-bottom:15px;
}
#main-home-left {
width:550px;
background-image: url('../images/text-bkgd1.png');
background-repeat:repeat-y;
background-size: 650px auto;
float:left;
padding: 10px 50px 0 50px;
text-align:center;
min-height: 400px;
}
#main-home-right {
width:300px;
float:left;
padding: 10px 25px 10px 25px;
text-align:center;
}
非常感謝!這工作完美! – user1530022 2014-12-08 05:01:58