& nbsp在Internet Explorer中工作,但在firefox 1.0.4中使用问题 [英] &nbsp works in internet explorer but problem using in firefox 1.0.4
问题描述
我有以下几行html:
& nbsp;& nbsp1234& nbsp;& nbsp;& nbsp;& nbsp;& nbspabc& nb sp;& nbsp;& nbspyow
在Internet Explorer 6.0中,使用上面的html列显示正常:
1234 abcd yow
但是,在Firefox中,对于相同的HTML,得到这个:
& nbsp1234& nbspabcd yow
有谁知道为什么我可能会使用firefox获得我的html
的输出?
感谢您对此提出任何建议。
Entfred
I have the following line of html:
 1234  abc&nb sp;  yow
In Internet Explorer 6.0, the columns look ok using the above html:
1234 abcd yow
But, in firefox, for same html, getting this:
 1234  abcd yow
Does anyone know why I might be getting   in the output of my html
using firefox?
Thanks for any advice on this.
Entfred
推荐答案
en ***** @ hotmail.com 写道:
我有以下几行html:
& nbsp;& nbsp1234& nbsp;& nbsp;& nbsp;& nbsp;& nbspabc& nb sp;& nbsp;& nbspyow
在Internet Explorer 6.0中,列看起来没问题使用上面的html:
1234 abcd yow
但是,在firefox中,对于相同的html,得到这个:
& nbsp1234& nbspabcd yow
I have the following line of html:
 1234  abc&nb sp;  yow
In Internet Explorer 6.0, the columns look ok using the above html:
1234 abcd yow
But, in firefox, for same html, getting this:
 1234  abcd yow
答案在你的代码中 - 分号'';''对于定义
特殊字符的结尾非常重要。
IE认为它知道你想要什么,并为你显示它。 FF知道
它不可能知道你想要什么,并显示你输入的
。
IE的事实是在这种情况下,正确的是不要停止意见
除以(*)是否是''正确''行为。
Nik
*在ciwah中划分较少,那些反对
在所有情况下全面采用所有标准的人都是
挑起并追捕。
The answer is in your code - the semicolon '';'' is important to define
the end of the special character.
IE thinks it knows what you want, and displays it for you. FF knows
that it cannot possibly know what you want and displays what you have
entered.
The fact that IE is correct in this instance does not stop opinion being
divided(*) as to whether or not it is the ''right'' behaviour.
Nik
* Less divided in c.i.w.a.h., where those who speak against the
all-encompassing adoption of all standards in all cases have been
provoked and hounded out.
en*****@hotmail.com 写道:
en*****@hotmail.com writes:
我有以下几行html:
& nbsp;& nbsp1234& nbsp;& nbsp;& nbsp;& nbsp;& nbspabc& nb sp;& nbsp;& nbspyow
在Internet Explorer 6.0中,列看起来不错上面的html:
1234 abcd yow
但是,在firefox中,对于相同的html,获取这个:
& nbsp1234& nbspabcd yow
有谁知道为什么我会在我的html输出中得到& nbsp
使用firefox?
I have the following line of html:
 1234  abc&nb sp;  yow
In Internet Explorer 6.0, the columns look ok using the above html:
1234 abcd yow
But, in firefox, for same html, getting this:
 1234  abcd yow
Does anyone know why I might be getting   in the output of my html
using firefox?
其中几个& nbsp;实体缺少必要的;在末尾。 IE
碰巧通过做或多或少做你想要的事来处理错误,但是FireFox
处理它的方式不同。
sherm--
-
西弗吉尼亚人的网络托管,西弗吉尼亚人: http://wv-www.net
Perl中的Cocoa编程: http://camelbones.sourceforge.net
Nik写道:
Nik wrote:
en*****@hotmail.com 写道:
>我有以下html行:
& nbsp;& nbsp1234& nbsp;& nbsp;& nbsp;& nbsp;& nbspabc& ; n bsp;& nbsp;& nbspyow
在Internet Explorer 6.0中,使用上面的html列看起来没问题:
1234 abcd yow
但是,在firefox中,相同的HTML,得到这个:
& nbsp1234& nbspabcd yow
>I have the following line of html:
 1234  abc&n bsp;  yow
In Internet Explorer 6.0, the columns look ok using the above html:
1234 abcd yow
But, in firefox, for same html, getting this:
 1234  abcd yow
答案在你的代码中 - 分号'';''对于定义
很重要特殊角色的结束。
IE认为它知道你想要什么,并为你显示它。 FF知道
它不可能知道你想要什么,并显示你输入的
。
IE的事实是在这种情况下更正不会停止意见
被划分(*)是否是''正确''行为。
The answer is in your code - the semicolon '';'' is important to define
the end of the special character.
IE thinks it knows what you want, and displays it for you. FF knows
that it cannot possibly know what you want and displays what you have
entered.
The fact that IE is correct in this instance does not stop opinion
being divided(*) as to whether or not it is the ''right'' behaviour.
好吧,我讨厌MSIE输出一个空格,当我的意思是& nbsp时,但是再次
它会将其记录为& amp; nbsp: - )
Grtz,
-
Rik Wasmus
Well, I''d hate for MSIE to output a space when I mean  , but then again
it would offcourse be written as &nbsp :-)
Grtz,
--
Rik Wasmus
这篇关于& nbsp在Internet Explorer中工作,但在firefox 1.0.4中使用问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!