Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/73.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 缩放下的css错误_Html_Css - Fatal编程技术网

Html 缩放下的css错误

Html 缩放下的css错误,html,css,Html,Css,大家好,我遇到了一个问题 我有一个没有100%缩放的标题,它看起来像这样: 但当我缩放标题时,标题会向右移动: HTML: <body> <div id="header"> <div id="logo"></div> </div> </body> body { background:url(images/bg.png); margin:0; padding:0;} #header { margin-bott

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

但当我缩放标题时,标题会向右移动:

HTML:

<body>
  <div id="header">
<div id="logo"></div>
  </div>
</body>
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;}

根据您的页面宽度,将
最小宽度
提供给您
正文
。这样写:

body{
 min-width:990px;
}