HTML与非破坏性空间相反 [英] HTML opposite of non-breaking space

查看:69
本文介绍了HTML与非破坏性空间相反的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的HTML中,我有一个很长的单词,我只是在没有足够空间时才试图强制一个特定的断点。我需要的是一种有条件的占位符。我怎么能做到这一点?

In my HTML I have a very long word and I'm trying to force a specific break point only when there isn't enough room. What I need is a sort of conditional-breaking placeholder. How can I achieve this sort of thing?

推荐答案

也许Unicode零宽度空间可以帮助: http://www.fileformat.info/info/unicode/char/200b/index.htm

Maybe the Unicode zero-width space would help: http://www.fileformat.info/info/unicode/char/200b/index.htm

HTML实体是​ eg
over​ flow 只会在整个单词不合适时才会在over和flow之间打破单词。

The HTML entity is ​ e.g. over​flow will break the word between "over" and "flow" only when the full word doesn't fit.

这篇关于HTML与非破坏性空间相反的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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