0
我想div div高度设置为auto。Css包装和容器分区自动高度?
在里面的div的底部是走出来。我想要底部div扩展到。
请帮忙!
body,html{height:100%}
.wrapper{
\t width: 700px;
height: 100%;
\t margin: 25px auto;
overflow:hidden;
position: relative;
}
.inner-container{
\t width: 100%;
\t height: 100%;
\t float: left;
\t border-radius: 5px;
\t background: rgba(255,255,255,.5);
\t position: relative;
}
.button-container{
\t float: left;
\t width: 100%;
\t height: 35px;
\t position: absolute;
\t z-index: 2;
}
#prev, #next{
\t border: 0;
\t background: #5CB85C;
\t padding: 5px 10px;
\t color: #fff;
\t border-radius: 2px;
\t cursor: pointer;
\t font-size: 18px;
}
#next{
\t float: right;
}
#prev{
\t float: left;
}
#verilistesi{
\t float: left;
\t width: 700px;
height: 100%;
\t position: relative;
\t overflow: hidden;
}
#verilistesi .item-container{
\t width: 100%;
\t float: left;
}
#verilistesi .item-container .item{
\t width: 500px;
height: 100%;
\t background: rgba(0,0,0,.3);
\t margin-bottom: 35px;
\t margin-top: 50px;
\t position: relative;
\t overflow: hidden;
}
我的CSS。
我如何设置自动高度两个div?请给予帮助?
你的问题没有明确的版本1.00 ......但试图从包装类删除100%的高度。 – JodyT