0
点赞
收藏
分享

微信扫一扫

iPhone设备中如何分析和解决应用程序崩溃日志的问题

和谐幸福的人生 04-05 15:30 阅读 1

案例:

<frameset cols="5%,*" >
    <frame src="left_frame.html">
    <frame src="right_frame.html">
</frameset>

一、<frameset>标签

属性描述
rows%,*划分行。
cols%,*划分列。

注:html5已不支持frameset标签!

二、<frame>标签

属性描述
srcurl规定在框架中显示的文档的 URL。
scrollingyes
no
auto
规定是否在框架中显示滚动条。
frameborder1/0规定是否显示框架周围的边框。
noresizenoresize规定无法改变框架大小。

注:html5已不支持frameset标签!

三、<iframe>标签

属性描述
heightpixels、%高。
widthpixels、%宽。
srcurl用于加载外部页面的URL。
srcdocHTML_code用于指定要显示的HTML内容,值为html代码。
sandbox

allow-forms、allow-pointer-lock、

allow-popups、allow-same-origin、

allow-scripts、allow-top-navigation

启用一系列对 <iframe>中内容的额外限制。

allow-forms:允许在<iframe>中提交表单。

allow-pointer-lock:启用鼠标指针锁定功能。

allow-popups:允许在<iframe>中打开弹出窗口。

allow-scripts:允许在<iframe>中执行脚本。

 实例:

<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title>菜鸟教程(runoob.com)</title> 
</head>
<body>

<iframe width="100%" height="50%" src="demo_iframe_sandbox.html" sandbox="allow-scripts">
  <p>您的浏览器不支持 iframes.</p>
</iframe>

<p>"获得日期和时间" 按钮会在行内框架中运行一段脚本。</p>
<p>由于 sandbox 属性被设置为空字符串 (""),行内框架的内容不允许运行脚本。</p>
<p>如果向 sandbox 属性添加 "allow-scripts",则允许运行 JavaScript。</p>
<p><b>注释:</b>IE 9 以及更早的版本不支持 sandbox 属性,Opera 12 以及更早的版本也不支持该属性。</p>

</body>
</html>

效果:

举报

相关推荐

0 条评论