去除CSDN无用的打印边框,显示数据

(function(){
$("#side").remove();
$("#comment_title, #comment_list, #comment_bar, #comment_form, .announce, #ad_cen, #ad_bot").remove();
$(".nav_top_2011, #header, #navigator").remove();
$(".p4course_target, .comment-box, .recommend-box, #csdn-toolbar, .csdn-side-toolbar,.left-toolbox,#tool-box").remove();
$("aside").remove();
$(".tool-box").remove();
$("main").css('display','content');
$("main").css('float','left');
window.print();

$("tool-box").remove();
})();

两年大概看此博客blog.codingnow.com/aee/
原文地址:https://www.cnblogs.com/dog-and-cat/p/15208193.html