MozTW 討論區
https://forum.moztw.org/

W3C標準下是不能用頁框?
https://forum.moztw.org/viewtopic.php?f=13&t=5055
1 頁 (共 2 頁)

發表人:  hkwebsite [ 2004-12-20, 14:43 ]
文章主題 :  W3C標準下是不能用頁框?

我寫的頁框語法總不能支援FIREFOX...
Why?
我是要寫一個左和右頁框的網頁....
請教一教我怎樣去寫..
thanks...[/code]

發表人:  member [ 2004-12-20, 14:46 ]
文章主題 : 

貼你用的語法上來看看, 或許是你用錯了方法了.

發表人:  hkwebsite [ 2004-12-20, 14:52 ]
文章主題 : 

<frameset cols="80,*" frameborder="NO" border="0" framespacing="0">
<frame src="xxx2" name="leftFrame" scrolling="NO" noresize>
<frame src="xxx.htm" name="mainFrame">
</frameset>

發表人:  hkwebsite [ 2004-12-20, 14:53 ]
文章主題 : 

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<title>xxx</title>
</head>
<frameset cols="80,*" frameborder="NO" border="0" framespacing="0">
<frame src="xxx2" name="leftFrame" scrolling="NO" noresize>
<frame src="xxx.htm" name="mainFrame">
</frameset>
</frameset>
<noframes><body>
</body></noframes>
</html>

發表人:  hkwebsite [ 2004-12-20, 15:12 ]
文章主題 : 

help

發表人:  訪客 [ 2004-12-20, 15:14 ]
文章主題 : 

你遇到的是怎樣的問題阿?

我都很正常阿.
我修改你的成為這樣,可以很正常顯示.

--------------------------------------
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<title>xxx</title>
</head>
<frameset cols="80,*" frameborder="NO" border="0" framespacing="0">
<frame src="http://www.yahoo.com.tw" name="leftFrame" scrolling="NO" noresize>
<frame src="http://www.yahoo.com.tw" name="mainFrame">
</frameset>
</frameset>
<noframes><body>
</body></noframes>
</html>
---------------------------------

hkwebsite 寫:
help

發表人:  jamie [ 2004-12-20, 16:07 ]
文章主題 : 

Anonymous 寫:
你遇到的是怎樣的問題阿?

我都很正常阿.
我修改你的成為這樣,可以很正常顯示.

--------------------------------------
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<title>xxx</title>
</head>
<frameset cols="80,*" frameborder="NO" border="0" framespacing="0">
<frame src="http://www.yahoo.com.tw" name="leftFrame" scrolling="NO" noresize>
<frame src="http://www.yahoo.com.tw" name="mainFrame">
</frameset>
</frameset>
<noframes><body>
</body></noframes>
</html>
---------------------------------

hkwebsite 寫:
help

check html4.01 not pass

發表人:  訪客 [ 2004-12-20, 16:17 ]
文章主題 : 

這當然不正常阿, 因為格式根本不會.
http://www.chrispederick.com/work/firefox/webdeveloper/

下載, Web Developer.

可以幫你驗證這份 HTML 是否符合規格.
以及指出哪邊出錯.

jamie 寫:
Anonymous 寫:
你遇到的是怎樣的問題阿?

我都很正常阿.
我修改你的成為這樣,可以很正常顯示.

hkwebsite 寫:
help

check html4.01 not pass

發表人:  hkwebsite [ 2004-12-20, 22:52 ]
文章主題 : 

<frameset cols="80,*" frameborder="no" border="0" framespacing="0">

frameborder="no" border="0" framespacing="0">
不能通過w3c,怎樣改呢?

發表人:  hkwebsite [ 2004-12-20, 22:58 ]
文章主題 :  還有呢!

hkwebsite 寫:
<frameset cols="80,*" frameborder="no" border="0" framespacing="0">

frameborder="no" border="0" framespacing="0">
不能通過w3c,怎樣改呢?

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

1.

Line 8, column 15: there is no attribute "COLS"

<frameset cols="80,*" frameborder="no" border="0" framespacing="0">

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.


2.

Line 8, column 34: there is no attribute "FRAMEBORDER"

<frameset cols="80,*" frameborder="no" border="0" framespacing="0">


3.

Line 8, column 46: there is no attribute "BORDER"

<frameset cols="80,*" frameborder="no" border="0" framespacing="0">


4.

Line 8, column 63: there is no attribute "FRAMESPACING"

... cols="80,*" frameborder="no" border="0" framespacing="0">


5.

Line 8, column 66: element "FRAMESET" undefined

..."80,*" frameborder="no" border="0" framespacing="0">

You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element), or by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).


6.

Line 9, column 11: there is no attribute "SRC"

<frame src="left.htm" name="leftFrame" scrolling="NO" noresize>


7.

Line 9, column 27: there is no attribute "NAME"

<frame src="left.htm" name="leftFrame" scrolling="NO" noresize>


8.

Line 9, column 49: there is no attribute "SCROLLING"

<frame src="left.htm" name="leftFrame" scrolling="NO" noresize>


9.

Line 9, column 62: "NORESIZE" is not a member of a group specified for any attribute

...src="left.htm" name="leftFrame" scrolling="NO" noresize>


10.

Line 9, column 62: element "FRAME" undefined

...src="left.htm" name="leftFrame" scrolling="NO" noresize>


11.

Line 10, column 39: element "FRAME" undefined

<frame src="right.htm" name="mainFrame">


12.

Line 12, column 10: end tag for element "FRAMESET" which is not open

</frameset>

The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

If this error occured in a script section of your document, you should probably read this FAQ entry.


13.

Line 13, column 15: document type does not allow element "BODY" 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).

發表人:  danielwang [ 2004-12-23, 21:26 ]
文章主題 : 

add
代碼:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">

as the first line of your code

發表人:  JackieKu [ 2007-01-20, 00:46 ]
文章主題 : 

hkwebsite 寫:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<title>xxx</title>
</head>
<frameset cols="80,*" frameborder="NO" border="0" framespacing="0">
<frame src="xxx2" name="leftFrame" scrolling="NO" noresize>
<frame src="xxx.htm" name="mainFrame">
</frameset>
</frameset>
<noframes><body>
</body></noframes>
</html>


嗯...沒人覺得他只有一個<frameset>卻要兩個</frameset>很奇怪嗎??XD
關於標準的frame用法請參照W3C文件
http://www.w3.org/TR/html401/present/fr ... f-NOFRAMES
所以<noframes>裡面不應該有<body>的...

發表人:  訪客 [ 2007-10-04, 14:05 ]
文章主題 : 

JackieKu 寫:
所以<noframes>裡面不應該有<body>的...

更正確的說法是當此page使用
代碼:
<frameset></frameset>
時根本就不該有
代碼:
<body></body>
的存在
為何要使用Framset!?
這類DTD已算是過渡性質
很少有人做這類的設計了

發表人:  tszkin [ 2007-10-05, 17:50 ]
文章主題 : 

參考我N多年前的設計吧
http://tszkin.sillydog.com/mainpage.htm
是符合W3C標準的

發表人:  不惑仔Boohover [ 2007-10-13, 21:00 ]
文章主題 : 

W3C html5 草書中已刪除 frame 相關 elements,果然是預料中的事。

有一個 element 有趣地 acronym 竟被刪除了,而建議以 abbr 取代,原因是這兩個容易讓人混淆,顯然有一個是多餘。但是問題是 ie6 沒支援 abbr ,那現在怎麼辦?該用什麼?擺明好像故意搞 ie 的樣子,明明刪掉 abbr 就好了嘛! :P

1 頁 (共 2 頁) 所有顯示的時間為 UTC + 8 小時
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/