zoukankan      html  css  js  c++  java
  • H5_0039:iframe 页面嵌套格式 安全选项sandbox

    scrolling="no"               是否有滚动条
    frameborder="no"             是否有边框
    allowtransparency="yes"      是否背景透明


    <iframe name="son" id="OneF" src="fwlc.html"
     style="position: absolute;  100%; height: 100%;"
     width="100%" height="100%" scrolling="no" frameborder="no" allowtransparency="yes" security="restricted" sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts"></iframe>


    "" 应用以下所有的限制。
    allow-same-origin 允许 iframe 内容被视为与包含文档有相同的来源。
    allow-top-navigation 允许 iframe 内容从包含文档导航(加载)内容。
    allow-forms 允许表单提交。
    allow-scripts 允许脚本执行。




    <iframe name="IF0" id="IF0" class="IF0" src="https://www.baidu.com/" width="100%" height="100%" scrolling="no" frameborder="no" allowtransparency="yes" security="restricted" sandbox="allow-top-navigation allow-same-origin allow-forms allow-popups allow-scripts"></iframe>
    配置    效果
    allow-forms    允许进行提交表单
    allow-scripts    运行执行脚本
    allow-same-origin    允许同域请求,比如ajax,storage
    allow-top-navigation    允许iframe能够主导window.top进行页面跳转
    allow-popups    允许iframe中弹出新窗口,比如,window.open,target="_blank"
    allow-pointer-lock    在iframe中可以锁定鼠标,主要和鼠标锁定有关
    琥珀君的博客
  • 相关阅读:
    Matlab图像处理函数:regionprops
    Java的 volatile关键字的底层实现原理
    SQL学习(一.索引)
    solr7.7.0搜索引擎使用(四)(搜索语法)
    solr7.7.0搜索引擎使用(三)(添加文件索引)
    singleton单例模式小结
    多态小结
    quartz定时任务时间设置
    EditPlus编译运行java文件
    NoClassDefFoundError错误发生的原因
  • 原文地址:https://www.cnblogs.com/eliteboy/p/12700447.html
Copyright © 2011-2022 走看看