MozTW 討論區

各項 Mozilla 相關軟體與技術討論
現在的時間是 2025-08-22, 02:31

所有顯示的時間為 UTC + 8 小時





發表新文章 回覆主題  [ 6 篇文章 ] 
發表人 內容
 文章主題 : help救救我
文章發表於 : 2004-12-25, 21:32 
我的英文不好,請各位大大教教我
File: myhomepage.htm
Encoding: big5
Doctype: HTML 4.01 Frameset
Errors: 1
This page is not Valid HTML 4.01 Frameset!

Below are the results of attempting to parse this document with an SGML parser.

1.

Line 12, column 9: document type does not allow element "NOFRAMES" here

<noframes><body>

The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).

謝謝各位


回頂端
Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.7.5) Gecko/20041119 Firefox/1.0
  
引用回覆  
 文章主題 :
文章發表於 : 2004-12-25, 21:48 
離線
[網站管理員]
頭像

註冊時間: 2004-09-27, 09:24
文章: 1685
試著將 <noframes> 改成 <noframes/> 看看

_________________
korp + korp 中文站(沒精神更新)


回頂端
Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.7.5) Gecko/20041119 Firefox/1.0
 個人資料  
引用回覆  
 文章主題 :
文章發表於 : 2004-12-25, 22:28 
你忘了用 </noframes> 收尾吧。

<frameset>
  <frame />
  <frame />

  <noframes>
   <body>

   </body>
  </noframes>
</frameset>


回頂端
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041115 Firefox/1.0
  
引用回覆  
 文章主題 :
文章發表於 : 2004-12-26, 11:27 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<title>無標題文件</title>
</head>

<frameset cols="25%,75%">
<frame src="left.htm" name="meun">
<frame src="right.htm" name="main">
</frameset><noframes></noframes>
<noframes><body>
</body></noframes>
</html>
再幫我看一下
有什麼錯誤
謝謝


回頂端
Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.7.5) Gecko/20041119 Firefox/1.0
  
引用回覆  
 文章主題 :
文章發表於 : 2004-12-26, 11:39 
為什麼要用二次 <noframes></noframes>?
可以去掉一個,然後把 noframes 放在 frameset 裡面。

<frameset cols="25%,75%">
<frame src="left.htm" name="meun">
<frame src="right.htm" name="main">
<noframes>
<body>
</body>
</noframes>
</frameset>


回頂端
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041115 Firefox/1.0
  
引用回覆  
文章發表於 : 2004-12-26, 12:38 
離線
[MozTW 版主群]
頭像

註冊時間: 2003-09-15, 03:47
文章: 1016
來自: Taiwan
有空白 <body> 的 <noframe> 和沒有 <noframe> 應該是一樣的吧

frame 本身有許多使用性與搜尋器友善度的問題,建議不要用 frameset 的好


回頂端
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a5) Gecko/20041122
 個人資料  
引用回覆  
顯示文章 :  排序  
發表新文章 回覆主題  [ 6 篇文章 ] 

所有顯示的時間為 UTC + 8 小時


誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 7 位訪客


不能 在這個版面發表主題
不能 在這個版面回覆主題
不能 在這個版面編輯您的文章
不能 在這個版面刪除您的文章
不能 在這個版面上傳附加檔案

搜尋:
前往 :  
Powered by phpBB® Forum Software © phpBB Group
正體中文語系由 竹貓星球 維護製作
© moztw.org, Mozilla Foundation
MozTW,Mozilla 台灣社群