简体   繁体   English

Previous 1 2 Next 选项卡的 DataTable 样式

[英]DataTable styling for Previous 1 2 Next tabs

In the examples of DataTable, there is button for Previous 1 2 3... Next tabs.在 DataTable 的示例中,有Previous 1 2 3... Next选项卡的按钮。 In examples it's nicely ordered but they do not show how they did it.在示例中,它的顺序很好,但它们没有显示它们是如何做到的。 In my example these tabs are not nicely ordered and also shifted to left side.在我的示例中,这些选项卡没有很好地排序并且也移到了左侧。 Please see the attached image.请看附图。

How to style these tabs as they show in examples?如何按照示例中显示的方式设置这些选项卡的样式?

在此处输入图像描述

DataTable plugin provides an API documentation and example. DataTable 插件提供了 API 文档和示例。

 $(document).ready(function() { $('#example').DataTable( { "pagingType": "full_numbers" } ); } );

For more details, you can visit the following pages.欲了解更多详情,您可以访问以下页面。

https://datatables.net/reference/option/pagingType https://datatables.net/reference/option/pagingType

https://datatables.net/examples/basic_init/alt_pagination https://datatables.net/examples/basic_init/alt_pagination

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM