简体   繁体   中英

How make jQuery-DataTables responsive?

I have a question how to make the tables jQuery-DataTables responsive?

i already tried "responsive: true", but it's don't work

    $(function () {
            $('#example').DataTable({
                "aaSorting": [[ 2, "asc" ]],
                "oLanguage": {
                    "sProcessing":   "Подождите...",
                    "sLengthMenu":   "Показать _MENU_",
                    "sZeroRecords":  "Записи отсутствуют.",
                    "sInfo":         "Показаны записи <b>_START_ - _END_</b> из <b>_TOTAL_</b>.",
                    "sInfoEmpty":    "",
                    "sInfoFiltered": "(Отфильтровано из _MAX_ записей)",
                    "sInfoPostFix":  "",
                    "sSearch":       "Поиск:",
                    "sUrl":          "",
                    "oPaginate": {
                        "sFirst": "Первая",
                        "sPrevious": "«",
                        "sNext": "»",
                        "sLast": "Последняя"
                        }
                }
            });
        });

https://datatables.net/download/

This url will help you downloading everything about datatables and extensions. After downloading, you need to import .js and .css of the responsive extension into your html file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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