[英]Css Wrapper and Container Div Auto Height?
I want div in div height set auto. 我想在div高度中将div设置为auto。
http://bit.ly/rubikss1 http://bit.ly/rubikss1
at the bottom of the div inside is coming out. 在div底部的里面出来。 I want the bottom div to extend to.
我希望底部div扩展到。
Please Help! 请帮忙!
body,html{height:100%} .wrapper{ width: 700px; height: 100%; margin: 25px auto; overflow:hidden; position: relative; } .inner-container{ width: 100%; height: 100%; float: left; border-radius: 5px; background: rgba(255,255,255,.5); position: relative; } .button-container{ float: left; width: 100%; height: 35px; position: absolute; z-index: 2; } #prev, #next{ border: 0; background: #5CB85C; padding: 5px 10px; color: #fff; border-radius: 2px; cursor: pointer; font-size: 18px; } #next{ float: right; } #prev{ float: left; } #verilistesi{ float: left; width: 700px; height: 100%; position: relative; overflow: hidden; } #verilistesi .item-container{ width: 100%; float: left; } #verilistesi .item-container .item{ width: 500px; height: 100%; background: rgba(0,0,0,.3); margin-bottom: 35px; margin-top: 50px; position: relative; overflow: hidden; }
My css. 我的CSS。
How i do set auto height two div? 我如何设置自动高度2格? Please give help?
请帮忙吗?
I think that is what you want: 我认为这就是您想要的:
body,html{height:100%}
.wrapper{
width: 700px;
height: auto;
margin: 25px auto;
overflow:hidden;
position: relative;
}
.inner-container{
width: 100%;
height: auto;
float: left;
border-radius: 5px;
background: rgba(255,255,255,.5);
position: relative;
}
.button-container{
float: left;
width: 100%;
height: 35px;
position: absolute;
z-index: 2;
}
#prev, #next{
border: 0;
background: #5CB85C;
padding: 5px 10px;
color: #fff;
border-radius: 2px;
cursor: pointer;
font-size: 18px;
}
#next{
float: right;
}
#prev{
float: left;
}
#verilistesi{
float: left;
width: 700px;
height: auto;
position: relative;
overflow: hidden;
}
#verilistesi .item-container{
width: 100%;
float: left;
}
#verilistesi .item-container .item{
width: 500px;
height: 100%;
background: rgba(0,0,0,.3);
margin-bottom: 35px;
margin-top: 50px;
position: relative;
overflow: hidden;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.