W3C验证器问题/问题 [英] W3C Validator Question/Problem

查看:79
本文介绍了W3C验证器问题/问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


当我尝试验证我的页面时,我收到一个奇怪的错误。当我在FORM标签内使用SELECT和INPUT标签时,会发生

错误。

我正在尝试使用XHTML 1.0 Strict标准。我也在使用

ColdFusion,但我一直在使用常规的FORM标签而不是

专有的CFFORM标签。如果你不能把SELECT和INPUT标签放在FORM标签的
里面,你应该把它们放在哪里???


看一看并告诉我你的想法:
http://validator.w3.org/check ?uri = ht ... ical%29& ss = 1


非常感谢提前。 -Dave

Hello all,

I''m getting a strange error when I try to validate my page(s). The
error occurs when I use SELECT and INPUT tags inside of the FORM tag.
I am trying to use the XHTML 1.0 Strict standard. I am also using
ColdFusion, but I having been using regular FORM tags instead of the
proprietary CFFORM tags. If you can''t put SELECT and INPUT tags inside
of the FORM tag, where are you supposed to put them???

Take a look and tell me what you think:
http://validator.w3.org/check?uri=ht...ically%29&ss=1

Much thanks in advance. -Dave

推荐答案

Dave写道:
Dave wrote:
当我尝试时,我收到一个奇怪的错误验证我的页面。


这并不奇怪。看一下要看的规格。

当我在
FORM标签内使用SELECT和INPUT标签时会发生错误。


....作为直接孩子。严格来说,它们必须包含在一个块中,例如,


< form>

< div> ;

< input>

< / div>

< / form>

我正在尝试使用XHTML 1.0 Strict标准。


像往常一样,这提出了一个问题:为什么XHTML / strict而不是

更广泛支持HTML /严格?
http://validator.w3.org/check?uri=ht...ically%29&ss=1
I''m getting a strange error when I try to validate my page(s).
It''s not really that strange. Have a look at the spec to see.
The error occurs when I use SELECT and INPUT tags inside of the
FORM tag.
....as direct children. In strict, they must be wrapped in a block
level element, e.g.,

<form>
<div>
<input>
</div>
</form>
I am trying to use the XHTML 1.0 Strict standard.
As usual, this raises the question: Why XHTML/strict instead of the
more widely supported HTML/strict?
http://validator.w3.org/check?uri=ht...ically%29&ss=1




-

Brian(删除.invalid给我发电子邮件)
http://www.tsmchughs.com/


Dave写道:
当我尝试验证我的页面时,我收到一个奇怪的错误。当我在FORM标签内使用SELECT和INPUT标签时发生
错误。
我正在尝试使用XHTML 1.0 Strict标准。我也在使用
ColdFusion,但我一直在使用常规的FORM标签而不是专有的CFFORM标签。如果你不能把SELECT和INPUT标签放在FORM标签的
里面,你应该把它们放在哪里???

看一看并告诉我你的想法:
http://validator.w3.org/check?uri=ht...ically %29& ss = 1
I''m getting a strange error when I try to validate my page(s). The
error occurs when I use SELECT and INPUT tags inside of the FORM tag.
I am trying to use the XHTML 1.0 Strict standard. I am also using
ColdFusion, but I having been using regular FORM tags instead of the
proprietary CFFORM tags. If you can''t put SELECT and INPUT tags inside
of the FORM tag, where are you supposed to put them???

Take a look and tell me what you think:
http://validator.w3.org/check?uri=ht...ically%29&ss=1




它确实看起来违反直觉,但验证器正确识别文件没有b / b
验证XHTML 1.0严格。


表单元素的内容模型只有块元素和

杂项元素(script,noscript,ins和del)。


< form ...>

< div>

....

< / div>

< / form>


验证并且应该适用于您的情况。


-

Klaus Johannes Rusch
Kl ******** @ atmedia.net
http://www.atmedia.net/KlausRusch/


2004年6月11日07:12:48 -0700,Dave< ba ** ******@hotmail.com>写道:
On 11 Jun 2004 07:12:48 -0700, Dave <ba********@hotmail.com> wrote:
大家好,

当我尝试验证我的页面时,我收到一个奇怪的错误。当我在FORM标签内使用SELECT和INPUT标签时发生
错误。
我正在尝试使用XHTML 1.0 Strict标准。我也在使用
ColdFusion,但我一直在使用常规的FORM标签而不是专有的CFFORM标签。如果你不能把SELECT和INPUT标签放在FORM标签的
里面,你应该把它们放在哪里???

看一看并告诉我你的想法:
http://validator.w3.org/check?uri=ht...ically %29& ss = 1

非常感谢提前。 -Dave
Hello all,

I''m getting a strange error when I try to validate my page(s). The
error occurs when I use SELECT and INPUT tags inside of the FORM tag.
I am trying to use the XHTML 1.0 Strict standard. I am also using
ColdFusion, but I having been using regular FORM tags instead of the
proprietary CFFORM tags. If you can''t put SELECT and INPUT tags inside
of the FORM tag, where are you supposed to put them???

Take a look and tell me what you think:
http://validator.w3.org/check?uri=ht...ically%29&ss=1

Much thanks in advance. -Dave




用div元素包装select和input,你就可以修复了。您可以将

与原始代码中的CSS并排显示。



Wrap the select and input in div elements and you''ll be fixed up. You can
get them to display side by side as in the original code with CSS.


这篇关于W3C验证器问题/问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆