现在我可能在这里很愚蠢,但我有以下css:
*{
margin:0;
padding:0;
}
body {
background:url(../img/bg/bg-body.jpg) repeat top left #f0f0f0;
font-family:"ProximaNova", Arial, Helvetica, sans-serif;
color:#ffffff;
width:100%;
}
#header {
background: #000000;
border-bottom: 1px solid #282828;
height:126px;
min-width:1000px;
zoom:1;
}
#header #nav {
height:46px;
line-height:46px;
margin-top:10px;
background:url(../img/bg/nav/nav-bg.png) repeat-x top left #000000;
}
问题是当用户放大页面时会发生这种情况:
而它应该是这样的:
我需要这方面的帮助,如果我能得到任何帮助,我将不胜感激。
@Jessica,这是 html 代码:
<div id="header">
<div id="content-wrap" class="header">
<div id="logo"></div>
<!--Begin News-->
<div id="news-scroller">
<b>Recent News: </b>
<span id="quote-left">"</span>
<div id="news-content">
<a href="#">
<?php
if (mysql_num_rows($news)== 0){
echo "There is currently no news from the Bowlplex Doubles, however there will be soon!";
} else {
echo $output['content'];
}
?>
</a>
</div>
<span id="quote-right">"</span>
<div id="post">
<b>Posted</b> <?php echo $output['date'].", ".$output['time']; ?>
</div>
</div>
<!--/End News-->
</div>
<!--Begin Navigation-->
<div id="nav">
<ul>
<a href="/"><li class="active">Home</li></a>
<a href="/scores"><li>Scores</li></a>
<a href="/entries"><li>Entry Forms</li></a>
<a href="/scoreboard"><li>Live Scoreboard</li></a>
<a href="/contact"><li>Contact</li></a>
<a href="/archive"><li class="last">Archive</li></a>
</ul>
</div>
<!--/End Navigation-->
</div>
<!--/End Header-->
更新
新代码:
body {
background:url(../img/bg/bg-body.jpg) repeat top left #f0f0f0;
font-family:"ProximaNova", Arial, Helvetica, sans-serif;
color:#ffffff;
width:100%;
}
#header {
background: #000000;
border-bottom: 1px solid #282828;
height:126px;
min-width:100%;
min-width:1000px;
zoom:1;
}
然而问题依然存在。