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中可以锁定鼠标,主要和鼠标锁定有关
    琥珀君的博客
  • 相关阅读:
    AOP编程之cglib动态代理:进阶一
    16-python基础5-文件读写操作
    13-python基础2-条件和循环
    12-python基础1-python概述
    11-linux基础八-正则表达式
    07-linux基础四-系统监控和硬盘分区
    06-linux基础三-文件操作和系统启动流程
    05-linux基础二-用户和权限操作
    04-linux基础一概述和简单命令
    03-网络通信原理
  • 原文地址:https://www.cnblogs.com/eliteboy/p/12700447.html
Copyright © 2011-2022 走看看