"上胶"带内联文字的grapchic? [英] "Glueing" grapchic with inline text together?

查看:69
本文介绍了"上胶"带内联文字的grapchic?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,


假设我有以下代码:


< img src =" / path / to / little / decorative / graphic">< a href =" / link / path"> Link< / a>


当我现在让浏览器窗口缩小时图形和

链接文本将分为两行。我不希望这种情况发生。如何

我完成了吗?我尝试在

图像和链接之间放置一个不间断的空间,但也许我误解了

& nbsp;的概念。因为那并没有解决任何问题。


亲切的问候

TomB

Hello,

Let''s say I have the following code:

<img src="/path/to/little/decorative/graphic"><a href="/link/path">Link</a>

When I now make my browser window smaller eventually the graphic and the
link text will break into two lines. I don''t want that to happen. How to
I accomplish that? I tried putting a non-breaking space between the
image and the link, but perhaps I''m misunderstanding the concept of
&nbsp; since that doesn''t solve anything.

Kind regards
TomB

推荐答案

在帖子< news:e2 ************************** @ news.versatel.n l>,

TomB说:
In post <news:e2**************************@news.versatel.n l>,
TomB said:
< img src =" / path / to / little / decorative / graphic">< a href =" / link / path" >链接< / a>

当我现在使我的浏览器窗口变小时,图形和
链接文本将分成两行。我不希望这种情况发生。
<img src="/path/to/little/decorative/graphic"><a href="/link/path">Link</a>

When I now make my browser window smaller eventually the graphic and the
link text will break into two lines. I don''t want that to happen.




white-space:nowrap;在包含图像和链接的元素上。


-

littlevoices



white-space:nowrap; on the element containing the image and the link.

--
l i t t l e v o i c e s


brucie写道:
brucie wrote:
在帖子< news:e2 ************************** @ news.versatel.n l>,
TomB说:

In post <news:e2**************************@news.versatel.n l>,
TomB said:

< img src =" / path / to / little / decorative / graphic">< a href =" / link / path">链接< / a>

当我现在使我的浏览器窗口变小时,图形和
链接文本将分成两行。我不希望这种情况发生。
<img src="/path/to/little/decorative/graphic"><a href="/link/path">Link</a>

When I now make my browser window smaller eventually the graphic and the
link text will break into two lines. I don''t want that to happen.



white-space:nowrap;在包含图像和链接的元素上。


white-space:nowrap; on the element containing the image and the link.




太棒了。谢谢!!!



Great. Thanks!!!


TomB< dr ****** @ dusk-metal.kicks-ass.org>写道:
TomB <dr******@dusk-metal.kicks-ass.org> wrote:
让我们说我有以下代码:

< img src =" / path / to / little / decorative / graphic" ;>< a href =" / link / path">链接< / a>

当我现在使我的浏览器窗口变小时,最终图形和
链接文本将分成两行。


防止中断将导致水平滚动条,这应该尽可能避免


我不是想要发生这种情况。
Let''s say I have the following code:

<img src="/path/to/little/decorative/graphic"><a href="/link/path">Link</a>

When I now make my browser window smaller eventually the graphic and the
link text will break into two lines.
Preventing the break will result in a horizontal scrollbar, this should
be avoided when possible.
I don''t want that to happen.




别想了。


顺便说一句,这不是HTML而是样式问题(CSS是关于alt.html

或comp.infosystems的主题。 www.authoring .stylesheets)


-

Spartanicus



Stop wanting that.

Btw, this is not an HTML but a style issue (CSS is on topic in alt.html
or comp.infosystems.www.authoring.stylesheets).

--
Spartanicus


这篇关于&QUOT;上胶&QUOT;带内联文字的grapchic?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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