【问题标题】:Frameset do not work in rails 4.2框架集在 rails 4.2 中不起作用
【发布时间】:2016-03-04 09:35:59
【问题描述】:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
  <title> ABC </title>
</head>

This is index.html.erb

<frameset rows="170,*" frameborder="0" border="0" framespacing="0">
  <frame name="topNav" src="top_nav.html" />
</frameset>
</html>

我的布局对于这个视图是错误的。因此,html, head 仅在此视图中声明。问题是为什么这段代码在 erb 文件中不起作用?

我在页面上只看到“这是 index.html.erb”消息。

【问题讨论】:

    标签: html ruby-on-rails iframe


    【解决方案1】:

    希望大家都知道

    framesets
    

    不应该在身体下方/之后。

    上面代码的问题是行:

    This is index.html.erb
    

    浏览器正在转换使用此正文标签。从代码中删除了这一行,框架集开始出现。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2010-10-13
      • 1970-01-01
      • 1970-01-01
      • 2020-06-23
      • 2016-10-12
      • 2012-03-06
      • 2019-11-12
      相关资源
      最近更新 更多