victory2706
V2EX  ›  问与答

网页打印到 pdf

  •  
  •   victory2706 · Jun 8, 2018 · 1973 views
  •   You need to sign in to view this topic
    This topic created in 3073 days ago, the information mentioned may be changed or developed.
    需要保存些网页到本地,现在用打印到 pdf 的选项,发现个问题,就是现在很多网站上面都有个固定的搜索框,具体说不清,当打印完成时候,这个固定的搜索框,占据了每一页的页眉位置,和一部分文字重合了,请问这个问题咋解决呢。或者有啥好的 idea。
    5 replies  •  2018-06-08 14:28:33 +08:00
    tutustream
    tutustream
    Jun 8, 2018
    1
    你说的 header 吗?试了试
    最简单的是 abp→拦截元素→屏蔽掉 header
    印象笔记保存时候裁减一下就好
    sethverlo
    sethverlo
    Jun 8, 2018 via iPhone
    2
    要么就是 css 没写好,需要写 @print 啥的
    iscraft
    iscraft
    Jun 8, 2018
    3
    安装 Stylish 隐藏掉搜索栏
    victory2706
    victory2706
    OP
    Jun 8, 2018
    4
    @tutustream
    @sethverlo
    @sethverlo
    感谢回复,现在安装了 adb,找源码并不熟,,,后来采用手动过滤,然后选择了状态栏,添加规则,现在网页页面就没有 header,最早也用 ctrl+a 复制到 onenote,简单处理下也能避免重复字段出现。
    tutustream
    tutustream
    Jun 8, 2018
    5
    @victory2706 #4 管用就好,我也是看了你的问题灵机一动想到的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5000 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 06:44 · PVG 14:44 · LAX 22:44 · JFK 01:44
    ♥ Do have faith in what you're doing.