现在我可能在这里愚蠢,但我有以下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;
}
然而问题仍然存在。
答案 0 :(得分:1)
min-width:1000px David,尝试将此属性设置为百分比。你的HTML代码是什么样的?你能发布吗。
答案 1 :(得分:0)