2010-11-15 69 views
0

我在我的服務器上使用Webmin。出於某種原因,它決定停止在根頁面上顯示任何內容,這是完全空白的。但是它仍然返回代碼,如下所示。框架中的單個頁面可以很好地工作,但框架集只是出於某種原因而不希望在任何瀏覽器中顯示。這個框架代碼有什麼問題?

我已經剝奪它一直到這一點,在本地服務器上運行,但它仍然沒有顯示任何東西:

<!DOCTYPE html public "-//W3C//DTD HTML 3.2 Final//EN"> 
<html> 
<head> 
<title>Title</title> 
</head> 
<body> 
<frameset cols="230,*"> 
    <frame name="left" src="test1.html" scrolling="auto"> 
    <frame name="right" src="test2.html" noresize> 
</frameset> 
</body> 
</html> 

我也試着刪除和更改各種屬性,但沒有運氣。

回答

4

<frameset>元素替代<body>元素。你不能在同一個文件中使用兩者。

你應該寫:

<!DOCTYPE html public "-//W3C//DTD HTML 3.2 Final//EN"> 
<html> 
<head> 
<title>Title</title> 
</head> 
<frameset cols="230, *"> 
    <frame name="left" src="test1.html" scrolling="auto" /> 
    <frame name="right" src="test2.html" noresize="noresize" /> 
</frameset> 
</html> 
+0

好吧,你不應該寫|框架|當然,完全可以。 – Ms2ger 2011-01-09 19:19:11

0

拿出<body></body>標籤。