簡體   English   中英

如何在不使用數據表的情況下使表響應?

[英]How to make a table responsive without using datatables?

如何在不使用數據表和引導程序的情況下使表具有響應性。 如何在移動視圖中拆分表格?

使用這種格式的html

<div class="table-responsive">
  <table class="table">
    ...
  </table>
</div>

CSS

.table-responsive {
   display: block;
   width: 100%;
   overflow-x: auto;
   -webkit-overflow-scrolling: touch;
   -ms-overflow-style: -ms-autohiding-scrollbar;
}
.table {
   width: 100%;
}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM