html5-6 Frame框架窗口類型


html5-6  Frame框架窗口類型

一、總結

一句話總結:

 

1、點左側的a鏈接如何打開右側頁面?

<a href='user/index.html' target='right'><button>查看用戶</button></a>

 

2、如何在一個窗口中退出到最外層的窗口?

<a href="login.html" target='_top'><button>退出</button></a>

 

3、frame框架的形式是什么樣的?

frameset+frame的形式

<frameset rows="60,*" frameborder='1' border='1px'>        
    <frame src='top.html' name='top'>
    <frameset cols='100,*'>
        <frame src='left.html' name='left' noresize>
        <frame src='right.html' name='right'>
    </frameset>
</frameset>

 

 

 

二、Frame框架窗口類型

1、相關知識

iframe內嵌框架:
<iframe src="http://localhost/web" frameborder="0"></iframe>

frame框架:
<frameset rows="60,*" frameborder='1' border='1px'>        
    <frame src='top.html' name='top'>
    <frameset cols='100,*'>
        <frame src='left.html' name='left' noresize>
        <frame src='right.html' name='right'>
    </frameset>
</frameset>

點左側的a鏈接如何打開右側頁面:
<a href='user/index.html' target='right'><button>查看用戶</button></a>

如何在一個窗口中退出到最外層的窗口:
<a href="login.html" target='_top'><button>退出</button></a>

2、截圖

 

 

3、代碼

 1 <!doctype html>
 2 <html lang="en">
 3 <head>
 4     <meta charset="UTF-8">
 5     <title>index</title>
 6 </head>
 7 <frameset rows="60,*" frameborder='1' border='1px'>        
 8     <frame src='top.html' name='top'>
 9     <frameset cols='100,*'>
10         <frame src='left.html' name='left' noresize>
11         <frame src='right.html' name='right'>
12     </frameset>
13 </frameset>
14 </html>

 

 

 

 

 

 

 

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



猜您在找 HTML框架用法 『HTML』Frame框架運用的技術 HTML 導航框架 (使用 Frame ) html中的框架frameset和frame及iframe HTML標簽天天練6--