1
我想垂直對齊即將推出的徽標,但沒有任何運氣。如何垂直對齊移動網頁上的徽標
我的代碼如下。
html {width:100%;height:100%;background:url(images/bg.jpg) repeat #a3a4a6;}
body {width:100%;height:100%;margin:auto;padding:0px;font-family:Arial, Helvetica, sans-serif;font-size:14px;color:#423932;overflow:hidden}
#container {width:100%;height:100%;margin:auto;background:url(images/top_bg.jpg) no-repeat top center;vertical-align:middle;}
#logo {margin:auto;background:url(images/logo.png) no-repeat top center; line-height:50px;}
任何反饋意見將不勝感激。
遺憾,這次沒工作。檢查一下@ http://halal.co/ – hawx
也許我不理解。您希望徽標出現在哪裏? –
嗨。我希望它看起來垂直對齊 - 頁面中間。 – hawx