打印CSDN内容,将以下js复制放入Chrome—>更多工具—>开发者工具—>console,回车即可
代码如下:
(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, #tool-box").remove(); $("aside").remove(); $(".tool-box").remove(); $("main").css('display','content'); $("main").css('float','left'); window.print(); $("tool-box").remove(); })();
转自:https://blog.csdn.net/u010954948/article/details/82843105