开发者

Can't print jQuery's Tablesorter with lines. lines are missing when I print

开发者 https://www.devze.com 2023-04-09 11:10 出处:网络
When I print Tablesorter from an HTML page, the lines don\'t show up.Can anyone expl开发者_运维问答ain to me a possible fix?If you only want the lines and don\'t care about the colored background, the

When I print Tablesorter from an HTML page, the lines don't show up. Can anyone expl开发者_运维问答ain to me a possible fix?


If you only want the lines and don't care about the colored background, then add this to your print stylesheet:

@media print {
    table.tablesorter th, table.tablesorter td {
        border: #000 1px solid;
    }
}

If you do want the background color, then do as @Matt Ball recommends, and set the browser to print background images... File > Page Setup (for Firefox for Windows); For Chrome, print (Ctrl-P) then set it to print in color, etc.

0

精彩评论

暂无评论...
验证码 换一张
取 消