这是代码,你可以很容易地看出错误。
#wrap {
text-align: center;
height: auto;
margin: 0 auto;
width: 1024px;
background: #CCC;
}
#sidebar {
height: auto;
width: 300px;
padding: 20px;
margin-top: 60px;
padding-bottom: 100px;
border: outset;
float: right;
overflow: auto;
}
#content {
border: outset;
overflow: auto;
width: 500px;
height: auto;
padding: 20px;
margin-top: 60px;
padding-bottom: 100px;
clear: left;
}

<div id="wrap">
<div id="sidebar">Some text here</div>
<div id="content">Some text here</div>
</div>
&#13;
我有一种偷偷摸摸的怀疑,它与浮动有关:对,但我不能让侧边栏在没有它的情况下留在右侧。
我希望包裹扩展到其中的任何内容的高度,这就是为什么我设置高度:auto但它不起作用,请帮助。
答案 0 :(得分:1)
将此css proprty添加到此ID
CREATE TABLE multinindx1 (
id int not null auto_increment primary key,
i int(11) NOT NULL,
j int(11) NOT NULL,
val char(10) NOT NULL,
KEY i (i),
KEY j (j)
) ENGINE=InnoDB;