Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/74.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 仅垂直滚动表格_Html_Css_Twitter Bootstrap - Fatal编程技术网

Html 仅垂直滚动表格

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中,以便
溢出:滚动
。但是,它也在水平方向插入滚动条。我只想要垂直的滚动条

<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。不要重复提问。可能重复的问题