Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/80.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 包装高度有问题_Html_Css - Fatal编程技术网

Html 包装高度有问题

Html 包装高度有问题,html,css,Html,Css,嗨,我身高有问题。。请告诉我的朋友我如何解决这个问题 这是我网站的链接。和价格页。。我的身高有问题 我把所有的内容都包装起来 #wrapper { background: url("images/wrapper_bg.png") repeat-y scroll left top transparent; margin: 0 auto; padding: 0 10px; width: 960px; } 但是 不响应互联网高度 请帮助我尝试放置溢出:自动

嗨,我身高有问题。。请告诉我的朋友我如何解决这个问题

这是我网站的链接。和价格页。。我的身高有问题

我把所有的内容都包装起来

#wrapper {
    background: url("images/wrapper_bg.png") repeat-y scroll left top transparent;
    margin: 0 auto;
    padding: 0 10px;
    width: 960px;
}
但是

不响应互联网高度


请帮助我

尝试放置
溢出:自动#main

主要问题是
#main
中的元素是浮动的。因此浮动元素的高度不会导致
#main
的高度扩展


清除:两个#footer

上的code>问题在于,因为#main div中的所有内容都设置了float属性。基本上,这使得main看起来没有任何元素,从而导致#footer div上升。我可以想出两种方法来解决这个问题:

  • 在主样式中添加“溢出:隐藏”,或
  • 在页脚样式中添加“clear:All”

  • 非常感谢你。。我已经试过第二条路了,但我走得不太好。。但我尝试了第一种方法,作为@Henesnarfel,你告诉我,它工作得很好。
    #main {
        height: 100% !important;
        width: 960px;
    }