【问题标题】:DataTable print not have a border of tableDataTable 打印没有表格边框
【发布时间】:2014-01-09 14:30:49
【问题描述】:

DataTable 但是当我使用打印时(Ctrl+P)不能有表格的边框。

www.trirand.com/blog/phpjqgrid/examples/sorting/custom/default.php

请帮我设置表格的边框

非常感谢。

【问题讨论】:

    标签: php jquery html printing datatable


    【解决方案1】:

    请为印刷媒体定义 CSS。请尝试一下。

    @media print {
        table, table tr, table td {
            border-top: #000 solid 1px;
            border-bottom: #000 solid 1px;
            border-left: #000 solid 1px;
            border-right: #000 solid 1px;
        }
    } 
    

    【讨论】:

    • 非常感谢。祝你好运。
    猜你喜欢
    • 1970-01-01
    • 2017-04-05
    • 1970-01-01
    • 2021-07-10
    • 1970-01-01
    • 2015-02-21
    • 1970-01-01
    • 2014-02-28
    • 2021-11-12
    相关资源
    最近更新 更多