我正在創建一個響應式SPA。在此應用程序中,我在嘗試在div標記內使用角度數據表時遇到了問題。
這裏是jsfiddle鏈接/ 8sveskkh/ 請指導我如何確保我的數據表駐留在包含div。Angular-datatable responsive
-2
A
回答
0
將table
包裝在div
與.table-responsive
類中,以使其不溢出其容器。
<div class="table-responsive">
<table class="table">
</table>
</div>
這是jsFiddle。
0
您可以使用第三方插件將數據表作爲響應。
<script src="https://cdn.datatables.net/responsive/2.1.0/js/dataTables.responsive.min.js"></script>
配置dtOptions如下:
$scope.dtOptions = DTOptionsBuilder.fromSource('data.json')
.withPaginationType('full_numbers')
// Active Responsive plugin
.withOption('responsive', true);
請參考:http://l-lin.github.io/angular-datatables/archives/#!/withResponsive其他定製選項,這將使喲一天。
相關問題
- 1. Responsive Photoswipe
- 2. Responsive Divs
- 3. Responsive topnav
- 4. Responsive Bootstrap
- 5. CSS Responsive Jquery
- 6. React responsive Navbar
- 7. 3D Touch on responsive
- 8. Responsive Images - Bootstrap
- 9. Susy Responsive Grids
- 10. Responsive Hexagon Menu
- 11. Bootstrap Responsive Images
- 12. Responsive circle image bootstrap
- 13. Responsive in bootstrap3
- 14. IFrame Responsive Site
- 15. Responsive NAV IE
- 16. Bootstrap responsive div
- 17. Bootstrap rows&col responsive
- 18. Responsive image-duo
- 19. Responsive Image Grid
- 20. Jquery Responsive Image Grid
- 21. Responsive divs toruble
- 22. Responsive Javascript文件?
- 23. Robocode Responsive車削
- 24. Responsive Image Orbit Slider
- 25. Bootstrap Responsive Nav Bar
- 26. Bootstrap Responsive Utility Class
- 27. CSS Responsive Center Div
- 28. jQuery Resize Div Responsive
- 29. Bootstrap Navbar Responsive
- 30. Responsive css sprite + retina
jsfiddle是否包含Bootstrap? –
究竟是什麼問題?你想讓表格充分利用其父分區嗎? –
數據表應該在外部div的邊界內,當我們縮小屏幕尺寸時不會發生 – kab