< span>的问题 [英] problem with <span>

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

问题描述

我有这样的结构:


< span id =" xyz"> Hello world< / span>


< span id =" xyz"> Hello Nordrhein-Westfalen< / span>


Validator批评(哦!)两倍的相同跨度。

问题是html文件是自动创建的,我必须是

确保每个元素都被< span>< / span>干净地框起来

>
如何说服验证人确认这是必要的?


谢谢


Werner

-

------------------------------------------ --------

Werner合伙人,45699 Herten
http://www.sonoptikon.de

I have such a construction:

<span id="xyz">Hello world</span>

<span id="xyz">Hello Nordrhein-Westfalen</span>

Validator critizises (oh!) that there is twice the same span.
the problem is that the html-file is automatically created and I must be
sure tat every element is cleanly framed by <span></span>

How to convince validator that this is necessary?

thanks

Werner
--
--------------------------------------------------
Werner Partner, 45699 Herten
http://www.sonoptikon.de

推荐答案

" Werner Partner"在comp.infosystems中写道。 www.authoring.html:
"Werner Partner" wrote in comp.infosystems.www.authoring.html:
我有这样的结构:

< span id =" xyz"> Hello world< / span>

< span id =" xyz"> ;你好Nordrhein-Westfalen< / span>

验证者批评(哦!)有两倍相同的跨度。


不,它抱怨有两倍相同的ID。

问题是html文件是自动创建的,我必须
确保每个元素都被< span>< / span>干净地构成

如何说服验证者这是必要的?
I have such a construction:

<span id="xyz">Hello world</span>

<span id="xyz">Hello Nordrhein-Westfalen</span>

Validator critizises (oh!) that there is twice the same span.
No, it complains that there is twice the same id.
the problem is that the html-file is automatically created and I must be
sure tat every element is cleanly framed by <span></span>

How to convince validator that this is necessary?




相反,为什么不修理你的发电机以便它不会喷出

重复的ID?


-


Stan Brown,Oak Road Systems,Tompkins County,New York,USA
http:/ /OakRoadSystems.com/


Stan Brown schrieb:
Stan Brown schrieb:
" Werner Partner"在comp.infosystems中写道。 www.authoring.html:
"Werner Partner" wrote in comp.infosystems.www.authoring.html:
我有这样的结构:

< span id =" xyz"> Hello world< / span>

< span id =" ; xyz">你好Nordrhein-Westfalen< / span>

验证者批评(哦!)有两倍相同的跨度。
I have such a construction:

<span id="xyz">Hello world</span>

<span id="xyz">Hello Nordrhein-Westfalen</span>

Validator critizises (oh!) that there is twice the same span.



不,它抱怨有两倍相同的id。


No, it complains that there is twice the same id.

问题是html文件是自动创建的,我必须确保每个元素都干净利落框架为< span>< / span>

如何说服验证者这是必要的?
the problem is that the html-file is automatically created and I must be
sure tat every element is cleanly framed by <span></span>

How to convince validator that this is necessary?



相反,为什么不修理你的发电机以便它没有喷出
重复的ID?


Instead, why not fix your generator so that it doesn''t spew out
duplicate IDs?



它更安全,因为元素更大,而且更容易
帧< span>< / span>的任何元素而不是检查身份证是否已更改




问候


Werner

-

--------------------------------------- -----------

Werner合伙人,45699 Herten
http://www.sonoptikon.de


2005年4月27日星期三23:23:30 +0200,Werner Partner

< ka **** @ sonoptikon.de>写道:
On Wed, 27 Apr 2005 23:23:30 +0200, Werner Partner
<ka****@sonoptikon.de> wrote:
我有这样的结构:

< span id =" xyz"> Hello world< / span>
< ; span id =" xyz"> Hello Nordrhein-Westfalen< / span>


如果这两行显示在同一个实例中,这是直接错误

的标记。

如何说服验证者这个是必要的吗?
I have such a construction:

<span id="xyz">Hello world</span>
<span id="xyz">Hello Nordrhein-Westfalen</span>
Which is directly wrong if those two lines appears in the same instance
of markup.
How to convince validator that this is necessary?




你不能改变规则只是因为它适合你的需要在某些方便的时间点。




标记_must_的一个特定实例中的每个id值赋值都是唯一的。


它''你的处理系统是错误的,而不是验证器。


想一想;一个''id''值应该可以用作

目标链接到例如,例如 http://www.somedomain.com/page#xyz


现在如果你有几个id =" xyz"在你的实例中,你的

浏览器会做什么来找出你想要它去哪一个?


-

雷克斯



You can''t change the rules just because it would fit your needs at some
convenient point in time.

Each and every id value assignment within one specific instance of
markup _must_ be unique.

It''s your processing system that is in error, not the validator.

Think about it; an ''id'' value is supposed to be possible to use as a
target to link to as in e.g. http://www.somedomain.com/page#xyz

Now if you have several id="xyz" in your instance, what shall your
browser do to find out which one you want it to go to?

--
Rex


这篇关于&lt; span&gt;的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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