frame标签和frameset

框架:

属性 描述
frameborder
  • 0
  • 1
规定是否显示框架周围的边框。
longdesc URL 规定一个包含有关框架内容的长描述的页面。
marginheight pixels 定义框架的上方和下方的边距。
marginwidth pixels 定义框架的左侧和右侧的边距。
name name 规定框架的名称。
noresize noresize 规定无法调整框架的大小。
scrolling
  • yes
  • no
  • auto
规定是否在框架中显示滚动条。
src URL 规定在框架中显示的文档的 URL。

提示浏览器无法支持框架

参考:https://www.w3school.com.cn/tags/tag_frame.asp

<html>

<frameset cols="25%,50%,25%">
  <frame src="/example/html/frame_a.html">
  <frame src="/example/html/frame_b.html">
  <frame src="/example/html/frame_c.html">

<noframes>
<body>您的浏览器无法处理框架!</body>
</noframes>

</frameset>

</html>

混合框架结构:

<html>

<frameset rows="50%,50%">

<frame src="/example/html/frame_a.html">

<frameset cols="25%,75%">
<frame src="/example/html/frame_b.html">
<frame src="/example/html/frame_c.html">
</frameset>

</frameset>

</html>

X-Frame-Options

参考地址:https://developer.mozilla.org/zh-CN/docs/Web/HTTP/X-Frame-Options

猜你喜欢

转载自www.cnblogs.com/Tpf386/p/12021144.html