时间: 2021-07-31 作者:daque
基础语法 <frameset> ... </frameset><frame src="url"> <noframes> ... </noframes>在 <noframes> 标志后的笔墨将只出此刻不扶助 frames 的欣赏器中。 <html> <head> </head> <frameset> <frame src="url"> <noframes> ... </noframes> </frameset> </html> 各窗口的尺寸树立 <frameset cols=#>纵向陈设多个窗口: <frameset cols=30%,20%,50%><frame src="a.html"><frame src="b.html"><frame src="c.html"></frameset>示例a b c <frameset rows=#>横向陈设多个窗口: <frameset rows=25%,25%,50%><frame src="a.html"><frame src="b.html"><frame src="c.html"></frameset>示例a b c cols & rows纵横陈设多个窗口: <frameset cols=20%,*><frame src="a.html"> <frameset rows=40%,*> <frame src="b.html"> <frame src="c.html"> </frameset></frameset>示例a b c 不承诺各窗口变换巨细 <frame noresize>缺省树立是承诺各窗口变换巨细的。 各窗口间彼此操纵(frame target) 窗口标识(frame name) <frame name=#><a href=url target=#> <frameset cols=50%,50%><frame src="a.html"><frame src="b.html" name="hello"></frameset>示例a b 特出的 4 类操纵(很有效喔)<a href=url target=_blank> 新窗口<a href=url target=_self> 本窗口<a href=url target=_parent> 父窗口<a href=url target=_top> 所有欣赏器窗口示例 frame 的表面(appearance) 各窗口边框的树立 <frame frameborder=#> #=yes, no / 1, 0<frameset rows=30%,*><frame src="acol.html" frameborder=1><frameset cols=30%,*> <frame src="bcol.html" frameborder=0> <frame src="ccol.html" frameborder=0></frameset></frameset>示例(a 有边框,b、c 没有) a b c 各窗口间空缺地区的树立 <frameset framespacing=#> #=空缺地区的巨细 <frameset rows=30%,* framespacing=100><frame src="acol.html"><frameset cols=30%,*> <frame src="bcol.html"> <frame src="ccol.html"></frameset></frameset>示例a b c 边框颜色 <frameset bordercolor=#> #=rrggbb 16 进制 rgb 数码, 大概是下列预订义颜色称呼:black, olive, teal, red, blue, maroon, navy, gray, lime, fuchsia, white, green, purple, silver, yellow, aqua <frameset rows=30%,* bordercolor=red><frame src="acol.html"><frameset cols=30%,*> <frame src="bcol.html"> <frame src="ccol.html"></frameset></frameset>示例a b c 页面空缺(margin) <frame marginwidth=# marginheight=#><frameset cols=50%,50%><frame src="a.html"><frame src="a.html" marginwidth=50 marginheight=50></frameset>示例aaaa aaaa 卷滚条树立 <frame scrolling=#> #=yes, no, auto#=缺省值是 auto。 浮动窗口(floating frame)<iframe src=# name=##> ... </iframe> #=初始页面包车型的士 url##=窗口标识(frame name)(之后可对此标识举行各窗口间彼此操纵)... = 此处笔墨将只出此刻不扶助 frames 的欣赏器中。<center><iframe src="a.html" name="window"> here is a floating frame</iframe><br><br><a href="a.html" target="window">load a</a><br><a href="b.html" target="window">load b</a><br><a href="ccol.html" target="window">load c</a><br></center>示例display a.html load aload bload c