2016-03-04 57 views
0
<!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,頭部只有這種觀點聲明。問題是,爲什麼不以ERB文件此代碼的工作?框架集不正常工作軌道4.2

我看到頁面上的唯一「這是index.html.erb」的消息。

回答

0

我希望每個人都知道,

framesets 

不應該體內後下/。

問題的上述代碼是行:

This is index.html.erb 

瀏覽器被轉換採取這一體標記。從代碼中刪除這一行和框架開始出現。