缩放下的css错误

时间:2012-06-26 07:49:21

标签: html css

大家好,我坚持一个问题 我有一个没有100%缩放的标题,它看起来像这样:

http://i.stack.imgur.com/S8tp8.png

但是当我缩放标题时右键:

http://i.stack.imgur.com/BapBA.png

HTML:

<body>
  <div id="header">
<div id="logo"></div>
  </div>
</body>

css:

body {
background:url(images/bg.png);
margin:0;
padding:0;}

#header {

margin-bottom:170px;
background:url(images/headerBg.png);
height:386px;
width:100%;}

#header #logo{
min-width:990px;
height:207px;
width:990px;
background:url(images/logo.png);
margin:0 auto;}

1 个答案:

答案 0 :(得分:1)

根据您的页面宽度向min-width提供body。写得像这样:

body{
 min-width:990px;
}