Datatables pagination buttons - Remove unwanted space

后端 未结 2 1975
孤独总比滥情好
孤独总比滥情好 2020-12-30 06:38

Currently my pagination looks as such: \"enter

I\'m trying to work out how to remove t

相关标签:
2条回答
  • 2020-12-30 07:13

    This issue has already been noted in their bug database. You do not need to hack the css.

    bootstrap pagination looks bad #39

    No need to include DataTables' own stylesheet (jquery.dataTables.css) since Bootstrap and the integration file provide everything that is needed.

    So just delete jquery.dataTables.css, and keep dataTables.bootstrap.min.css in your html style sheets.

    0 讨论(0)
  • 2020-12-30 07:33

    Oh yes. Easy to reproduce the error. To solve it, add this CSS after other CSS references :

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding : 0px;
        margin-left: 0px;
        display: inline;
        border: 0px;
    }
    .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
        border: 0px;
    }
    

    demo -> http://jsfiddle.net/s6c35ogt/
    Try to comment out the added CSS in the top right corner, and you will see the exact same behaviour as you describe.

    0 讨论(0)
提交回复
热议问题