<frameset rows='20%,*' > <!-- row 行 col 列 分行列要為rows cols -->
<frame src='鏈接' style=' background-color=red;' name=''>
<frameset cols='40%,*' >
<frame src='鏈接' style=' background-color=red;' name=''>
</frameset>
</frameset>
noresize="noresize"設置為框架窗口不可調節
<frameset rows="52px,*,52px" noresize="noresize"> <frame src="public/head.html" /> <frameset cols="20%,80%"> <frame src="public/menu.html" /> <!--frame不能放在body標簽內。指定name屬性,為這一個框架指定名字,在html的a的target屬性可以 設為target="right"在該框架顯示跳轉的頁面--> <frame name="right" /> </frameset> <frame src="public/footer.html" /> </frameset>
在某個分幀中顯示內容,target的值的區別:
_blank -- 在新窗口中打開鏈接
_parent -- 在父窗體中打開鏈接
_self -- 在當前窗體打開鏈接,不填即為此為默認值
_top -- 在當前窗體打開鏈接,並替換當前的整個窗體(框架頁)
target='分幀名字'
<frame src='鏈接' style=' background-color=red;' name='' target='分幀名字' >
<frame src='鏈接' style=' background-color=red;' name='' target='_blank' >
將鏈接中的內容在分幀名字中顯示