eastpiger
V2EX  ›  问与答

页面打印样式丢失,是 https 的锅么、

  •  
  •   eastpiger · Mar 1, 2016 · 3447 views
    This topic created in 3764 days ago, the information mentioned may be changed or developed.

    手头有个页面,之前 http 的时候,引用了 baidu 的 bootstrap css 。打印出来是符合要求的。但是近期换成了全站 https ,顺便改成了“/static/css/bootstrap.min.css ”这样的相对路径,打印的时候很明显发现 bootstrap 的样式丢失了。

    打印测试了 chrome 和 Safari

    google 一圈没有找到类似的情况描述。是浏览器打印的时候有什么对 https 的特殊状况么

    3 replies    2016-03-01 13:00:22 +08:00
    ss098
        1
    ss098  
       Mar 1, 2016 via Android
    正确的做法是使用浏览器提供的开发者工具查看 Network 请求是否成功响应。
    oott123
        2
    oott123  
       Mar 1, 2016
    我感觉是 css media 的问题
    roychan
        3
    roychan  
       Mar 1, 2016
    我也不知道诶
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1086 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 23:45 · PVG 07:45 · LAX 16:45 · JFK 19:45
    ♥ Do have faith in what you're doing.