不断的连字符 [英] non-breaking hyphen
问题描述
您好。我在尝试学习是否存在这样的东西时发现了以下内容:
非破坏连字符。显然,Unicode有一个 - 但这并不是很好的支持,特别是在旧版浏览器中。有人在某处说:
或者,您可以使用CSS声明一个类:
..nowrap {white-space:nowrap}
....然后将复合词包装在< span class = nowrap>< / span>中标记(或
任何其他合适的内联标记)。你也可以尝试{white-space:pre} ...
我不知道在哪里发布这个,因为部分问题是关于
字符实体显然未在html中定义?然而,对于非包装的CSS想法呢?
怎么样?在我的一个页面上
www.TheBicyclingGuitarist.net/newstuff.htm我赞赏
comp.infosystems的一些人。 www .authoring.site设计。我希望连字符介于
网站和设计之间是一个非破坏性的。
Chris Watson又称骑自行车的吉他手
Hi. I found the following when trying to learn if there is such a thing as a
non-breaking hyphen. Apparently Unicode has a ‑ but that is not
well-supported, especially in older browsers. Somebody somewhere said:
Alternately, you can use CSS to declare a class having:
..nowrap { white-space:nowrap }
.... and then wrap the compound word in a <span class=nowrap></span> tag (or
any other suitable inline tag). You can also try { white-space:pre } ...
I wasn''t sure where to post this, because part of the question is about the
character entity that apparently is NOT defined in html? However, what about
the CSS idea for non-wrapping? On one of my pages
www.TheBicyclingGuitarist.net/newstuff.htm I give credit to some folks at
comp.infosystems.www.authoring.site-design. I want the hyphen in between
site and design to be a non-breaking one.
Chris Watson a.k.a. "The Bicycling Guitarist"
推荐答案
2004年11月12日星期五18:19:08 GMT,骑自行车的吉他手
< Ch ** *@TheBicyclingGuitarist.net>写道:
On Fri, 12 Nov 2004 18:19:08 GMT, The Bicycling Guitarist
<Ch***@TheBicyclingGuitarist.net> wrote:
嗨。当我试图学习是否有这样的东西
作为一个不断的连字符时,我发现了以下内容。显然,Unicode有一个 - 但是并没有得到很好的支持,特别是在旧的浏览器中。有人在某地说:
或者,您可以使用CSS来声明一个类:
.nowrap {white-space:nowrap}
Hi. I found the following when trying to learn if there is such a thing
as a
non-breaking hyphen. Apparently Unicode has a ‑ but that is not
well-supported, especially in older browsers. Somebody somewhere said:
Alternately, you can use CSS to declare a class having:
.nowrap { white-space:nowrap }
你可以做到这一点。还有其他解决方案。我使用< nobr>那些有
的东西留在一行< / nobr>。当然,W3C验证器会一直警告
< nobr>不是HTML4.01中的有效元素。如果你被验证者唠叨这个问题,那就写下你自己的DTD吧。我做到了。验证器是
现在对我很好;-)。
-
PretLetters< http:// home .wanadoo.nl / b.de.zoete />
Webontwerp< http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html>
Zweefvliegen< http://home.wanadoo.nl/b.de.zoete/html/vliegen.html>
DTD< http://home.wanadoo.nl/ b.de.zoete / dtd / not_so_strict.dtd>
You can do that. There are other solutions. I use <nobr>the stuff that has
to stay in one line</nobr>. Sure, the W3C-validator keeps warning that
<nobr> is not a valid element in HTML4.01. If you get bugged by this
nagging by the validator, just write your own DTD. I did. The validator is
very nice to me now ;-) .
--
PretLetters <http://home.wanadoo.nl/b.de.zoete/>
Webontwerp <http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html>
Zweefvliegen <http://home.wanadoo.nl/b.de.zoete/html/vliegen.html>
DTD <http://home.wanadoo.nl/b.de.zoete/dtd/not_so_strict.dtd>
2004年11月12日星期五18:19:08 GMT,骑自行车的吉他手
< Ch *** @ TheBicyclingGuitarist.net>写道:
On Fri, 12 Nov 2004 18:19:08 GMT, "The Bicycling Guitarist"
<Ch***@TheBicyclingGuitarist.net> wrote:
嗨。在尝试学习是否存在
非断裂连字符时,我发现了以下内容。显然,Unicode有一个 - 但是并没有得到很好的支持,特别是在旧的浏览器中。有人在某处说:
或者,您可以使用CSS声明一个类:
.nowrap {white-space:nowrap}
。 ..然后将复合词包装在< span class = nowrap>< / span>中标签(或
任何其他合适的内联标签)。你也可以尝试{white-space:pre} ...
我不知道在哪里发布这个,因为部分问题是关于
字符实体,显然是没有在html中定义?然而,对于非包装的CSS想法呢?在我的一个页面上
www.TheBicyclingGuitarist.net/newstuff.htm我赞赏
comp.infosystems的一些人。 www.authoring.site - 设计。我希望网站和设计之间的连字符是一个不破坏的连字符。
Hi. I found the following when trying to learn if there is such a thing as a
non-breaking hyphen. Apparently Unicode has a ‑ but that is not
well-supported, especially in older browsers. Somebody somewhere said:
Alternately, you can use CSS to declare a class having:
.nowrap { white-space:nowrap }
... and then wrap the compound word in a <span class=nowrap></span> tag (or
any other suitable inline tag). You can also try { white-space:pre } ...
I wasn''t sure where to post this, because part of the question is about the
character entity that apparently is NOT defined in html? However, what about
the CSS idea for non-wrapping? On one of my pages
www.TheBicyclingGuitarist.net/newstuff.htm I give credit to some folks at
comp.infosystems.www.authoring.site-design. I want the hyphen in between
site and design to be a non-breaking one.
使用CSS空白:nowrap似乎在浏览器中运行良好最近都是
。然而,有一个小的混乱因素:CSS2规范
表示空白区域仅适用于块级元素。对于
white-space:pre这是明智的,对于white-space:nowrap它是愚蠢的。
但是浏览器编写者似乎已经决定忽略那一行
spec并做一些明智的事情。 (AFAIK)
-
Stephen Poley
http://www.xs4all.nl/~sbpoley/webmatters/
Stephen Poley< sb ****************** @ xs4all.nl>写道:
Stephen Poley <sb******************@xs4all.nl> wrote:
使用CSS white-space:nowrap似乎在最近的浏览器中运行良好。
是的,当CSS启用时。
然而有一个小小的混乱因素:CSS2规范
说白色空间仅适用于块级元素。
Using CSS white-space:nowrap seems to work well in browsers that are at
all recent.
Yes, when CSS is enabled.
There is however a small confusion factor: the CSS2 spec
says that white-space only applies to block-level elements.
长期以来人们都说这是一个错误,他们可能没有b $ b意思是这么说。但由于W3C的流程,W3C
建议目前是CSS2规范,但W3C真的_means_那个
每个人都应该使用CSS 2.1草案(Proposed建议。
财产含义的措辞也含糊不清,特别是如果你想到白色空间这个名字的话。连字符不是白色空间
当然。
-
Yucca, http://www.cs.tut.fi/~jkorpela/
关于网站创作的网页: http://www.cs.tut .fi / ~jkorpela / www.html
It has long been said that this was a mistake and they probably didn''t
mean to say so. But due to the processes of the W3C, the W3C
recommendation is currently the CSS2 spec but the W3C really _means_ that
everyone should use the CSS 2.1 draft ("Proposed Recommendation").
The wording of the meaning of the property is vague too, especially if
you think about the name white-space. Hyphens aren''t white space of
course.
--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
这篇关于不断的连字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!