overflow-x滚动不起作用

时间:2018-04-18 04:00:39

标签: html css

我有2个文件,x-scroll.html& scroll_table.html,需要使用iframe来包含另一个。我需要在页脚之后的水平滚动条,而不是在页脚之前。 感谢您的回答!!

x-scroll.html ==>

thresh1, contours, hierarchy = cv2.findContours(threshed_img, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)

cv2.drawContours(frame, contours, -1, (0, 255, 0), 3)

scroll_table.html ==> https://codepen.io/klim1167/pen/odNgLW

1 个答案:

答案 0 :(得分:1)

滚动条将位于div container的末尾。我建议您将表格包装到一个div并制作此滚动

<div class="wrap-table">
    <table id="single" class="table table-bordered" cellspacing="0">
    ...
    </table>
</div>

.wrap-table {
  width: 100%;
  overflow: scroll;
}

https://codepen.io/anon/pen/aGbzKW

相关问题