[英]hiding the scrollbar from the DIV
I am working with div
which is throwing an additional scrollbar
which I don't want to have. 我正在与
div
一起工作,它引发了一个我不想拥有的附加scrollbar
。 I want my div
to be of flexible width (bootstrap) and fixed height of 290px
. 我希望
div
的宽度灵活(引导程序),固定高度为290px
。 Can someone please help me out of this ? 有人可以帮我吗?
<div class="box">
<atitle>This is box 2</atitle>
<hr>
<div class="box1">
<p>Hello World Hello World Hello World Hello World Hello World </p>
</div>
</div>
And the CSS is here : CSS在这里:
.box {
overflow: hidden;
min-height: 290px;
border: 1px solid #383737;
margin-bottom: 30px;
background-color: #3d3d3d;
}
.box1 {
overflow: auto;
height: 290px;
}
I think this might help you: 我认为这可能对您有帮助:
.box1{
width: 100%;
height: 99%;
border: 1px solid blue;
overflow: auto;
padding-right: 15px;
}
.box{
height: 99%;
border: 1px solid red;
overflow:hidden;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.