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中可以锁定鼠标,主要和鼠标锁定有关
    琥珀君的博客
  • 相关阅读:
    c++笔记
    python笔记
    《c++不在难学--随老鸟快速通关》
    hexo
    hexo搭建
    《趣学算法》,陈小玉
    从机器学习谈起
    成不了AI高手?因为你根本不懂数据!听听这位老教授多年心血练就的最实用统计学
    PyTorch还是TensorFlow?这有一份新手指南
    win10下机器学习TensorFlow搭建
  • 原文地址:https://www.cnblogs.com/eliteboy/p/12700447.html
Copyright © 2011-2022 走看看