Html 仅垂直滚动表格
我将我的表包含在一个div中,以便Html 仅垂直滚动表格,html,css,twitter-bootstrap,Html,Css,Twitter Bootstrap,我将我的表包含在一个div中,以便溢出:滚动。但是,它也在水平方向插入滚动条。我只想要垂直的滚动条 <div style="height: 700px !important; width: 100%; overflow: scroll;"> <table class="table table-bordered"> <!-- Content Here --> </table> </div> 属性指定当块级
溢出:滚动。但是,它也在水平方向插入滚动条。我只想要垂直的滚动条
<div style="height: 700px !important; width: 100%; overflow: scroll;">
<table class="table table-bordered">
<!-- Content Here -->
</table>
</div>
属性指定当块级元素在上边缘和下边缘溢出时,是剪切内容、添加滚动条还是显示其溢出内容
<div style="height: 700px !important; width: 100%; overflow-y: scroll;">
<table class="table table-bordered">
<!-- Content Here -->
</table>
</div>
您可以使用overflow-y:scroll;或overflow-y:自动;财产
overflow-y属性指定当块级元素在上边缘和下边缘溢出时,是剪切内容、添加滚动条还是显示其溢出内容
<div style="height: 700px !important; width: 100%; overflow-y: scroll;">
<table class="table table-bordered">
<!-- Content Here -->
</table>
</div>
使用overflow-y:
属性,查找CSS3。不要重复提问。可能重复的问题