2017-03-15 45 views
0

這裏是幀的HTML5一個工作示例:HTML5可以調整大小的框架嗎?

<html> 
<head><title>NP Framer v1.0</title></head> 
<noframes> 
<body> 
Your browser doesn't support frames. Please click <a href="http://www.duckduckgo.com">here</a> to be redirected to the new page. 
</body> 
</noframes> 
<frameset framespacing="0" rows="150,*" frameborder="0" resize> 
<frame name="top" src="http://www.npscripts.com/framer/demo-top.html" target="top"> 
<frame name="main" src="http://www.duckduckgo.com" target="main"> 
</frameset> 
</html> 

這裏是可調整大小的DIV的內容(不幀)Resizable frame emulation

是可能的有在HTML5可調整大小的幀的工作示例? (您可以在兩幀之間拖動分隔線。)

我的使用案例是Chrome將我的瀏覽器選項卡投射到辦公室電視上。通常我只想看到儀表板。但我也喜歡那裏的音樂。所以有時候我想讓音樂標籤變大一點,這樣我就可以調整它了。

+0

你有什麼問題嗎? – GavinBrelstaff

+0

謝謝,我已經改寫它更清楚。 –

+1

不應使用框架集,不推薦使用,並且將來將被刪除。所以我建議不要使用它們 – j08691

回答

0

解決方案。是的,您可以在HTML5中使用可調整大小的框架。它可能會在未來破發,但它今天在Chrome中有效。

<!DOCTYPE html> 
<html> 
<frameset cols="*,*"> 
    <frame src="tv"> 
    <frame id="music"> 
</frameset> 
</html> 
相關問題