【问题标题】:Can HTML5 have resizable frames?HTML5 可以有可调整大小的框架吗?
【发布时间】:2017-03-15 13:31:13
【问题描述】:

这是 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 将我的浏览器标签投射到办公室电视上。通常我只想看仪表板。但我也喜欢那里的音乐。所以有时我想把音乐标签变大,这样我就可以调整它了。

【问题讨论】:

  • 你有什么问题?
  • 谢谢,我已经改写了,更清楚了。
  • 框架集不应该被使用,已被弃用,并且将在未来被移除。所以我建议不要使用它们

标签: html iframe frameset


【解决方案1】:

解决方案。是的,您可以在 HTML5 中使用可调整大小的框架。它可能会在未来中断,但它现在可以在 Chrome 中使用。

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-09-03
    • 1970-01-01
    • 2018-03-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-10-02
    相关资源
    最近更新 更多