V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
permaylau
V2EX  ›  问与答

现在 chrome, firefox, Safari 默认停止支持 ifame 框架了么?为何这样的代码显示不出来

  •  
  •   permaylau · Oct 7, 2018 · 2532 views
    This topic created in 2762 days ago, the information mentioned may be changed or developed.

    如题。为何这样的代码在上述三个主流浏览器里显示不出来呢。

    <iframe frameborder="0" height="60" scrolling="no" src="http://dwlm.12371.cn/daohang/index.shtml" width="100%"></iframe>

    如果 fame 框架不被支持,该用怎么样的代码达到这样的效果呢?

    技术上我是一个门外汉,只是略微知道些。

    3 replies    2018-10-07 12:59:26 +08:00
    oott123
        1
    oott123  
       Oct 7, 2018 via Android   ❤️ 2
    https 引 http 不支持
    源网站有 csp 之类的安全措施不支持
    目标网站有 frame options 或者 referer 限制不支持

    说了这么多不如看看控制台报错
    jugelizi
        2
    jugelizi  
       Oct 7, 2018
    Chrome/69 没问题
    DCjanus
        3
    DCjanus  
       Oct 7, 2018 via Android
    建议看控制台报错,有很多可能造成这个问题,我们学校的教务系统用了 frame,但是某个 HTTP 头设置不当,导致被浏览器拒绝加载。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   825 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 21:49 · PVG 05:49 · LAX 14:49 · JFK 17:49
    ♥ Do have faith in what you're doing.