丑陋的包裹休息 [英] ugly wrap breaks

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

问题描述

我网站的导航栏至少打破了三种不同的方式,具体取决于使用哪种浏览器,而且它们都很难看。我试过添加空格:

nowrap;对李。它在MSIE中更好,但在FireFox中没有。即便如此,

文本仍然是对着左边界。填充在哪里?


示例网页(大约150页有此导航栏)
http://www.TheBicyclingGuitarist.net/studies/ 与CSS在/css/style.css

任何帮助都是非常感谢。


-

骑自行车的吉他手

The nav bars of my web site break at least three different ways depending on
which browser is used, and they''re all ugly. I''ve tried adding white-space:
nowrap; to the li. It breaks better in MSIE but not in FireFox. Even then,
the text is all the way against the left border. Where did the padding go?

Sample web page (about 150 pages have this nav bar) at
http://www.TheBicyclingGuitarist.net/studies/ with CSS at /css/style.css
Any help is greatly appreciated.

--
The Bicycling Guitarist

推荐答案



" The Bicycling Guitarist" <章*** @ TheBicyclingGuitarist.net>在留言中写道

新闻:K%***************** @ newssvr13.news.prodigy.co m ...

"The Bicycling Guitarist" <Ch***@TheBicyclingGuitarist.net> wrote in message
news:K%*****************@newssvr13.news.prodigy.co m...
nowrap;对李。它在MSIE中更好,但在FireFox中没有。即便如此,
文本仍然是对着左边界。填充在哪里?
nowrap; to the li. It breaks better in MSIE but not in FireFox. Even then,
the text is all the way against the left border. Where did the padding go?




示例页面显示没有white-space:nowrap的CSS。用白色空间看一个

:nowrap检查
http://www.TheBicyclingGuitarist.net/studies/index2.htm



the sample page shows the CSS without the white-space: nowrap. To see one
with white-space: nowrap check out
http://www.TheBicyclingGuitarist.net/studies/index2.htm


自行车吉他手写道:
我的网站的导航条至少打破了三种不同的方式
取决于使用的浏览器,它们都很难看。我试过添加白色空间:nowrap;对李。它在MSIE中打破了更好,但在FireFox中没有打破。即使这样,文本仍然是对着左边界。
The nav bars of my web site break at least three different ways
depending on which browser is used, and they''re all ugly. I''ve tried
adding white-space: nowrap; to the li. It breaks better in MSIE but not
in FireFox. Even then, the text is all the way against the left border.



移动白色空间:nowrap来自#menubar ul li要么#menubar

或#menubar ul。在这两种情况下,根本不会发生包装。这具有

菜单在狭窄视图窗口上向右延伸的效果。

如果您不喜欢,请使用多个< ul>< / ul>

#menubar div中的部分。当窗口

缩小时,断点发生在ul'之间。

总的来说上面不是一个很好的解决方案。

菜单大小变得太大而无法水平显示。

最少作为单行。

-

jmm dash list(at)sohnen-moe(dot)com

(删除电子邮件的.AXSPAMGN)


Move the white-space:nowrap from "#menubar ul li" to either "#menubar"
or "#menubar ul". In both cases wrapping does not occur at all. This has
the effect that the menu extends past the right on narrow view windows.
If you do not like that, use multiple <ul></ul> sections within the
#menubar div. The break then occurs between the ul''s when the window
narrows down.
Overall the above is not a very good solution.
The menu size has simply grown too large to display horizontally. At
least as a single line.
--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)




" Jim Moe" < JM *************** @ sohnen-moe.com>在消息中写道

news:78 ******************** @ giganews.com ...

"Jim Moe" <jm***************@sohnen-moe.com> wrote in message
news:78********************@giganews.com...
Bicycling Guitarist写道:
The Bicycling Guitarist wrote:
我网站的导航条至少打破了三种不同的方式移动白色空间:nowrap来自#menubar ul li要么是#menubar
要么是#menubar ul。在这两种情况下,根本不会发生包装。这有
The nav bars of my web site break at least three different ways Move the white-space:nowrap from "#menubar ul li" to either "#menubar"
or "#menubar ul". In both cases wrapping does not occur at all. This has



如果您不喜欢,请使用多个< ul>< / ul>
#menubar div中的部分。然后在ul'的
之间发生中断。菜单大小变得太大而无法水平显示。至少作为一行。


If you do not like that, use multiple <ul></ul> sections within the
#menubar div. The break then occurs between the ul''s The menu size has simply grown too large to display horizontally. At
least as a single line.



谢谢你,吉姆。因此,如果我将导航按钮写成一个水平的

列表,它就不会与我指定的边界完美地断开。我想相信

有一些方法来获得这个外观。和CSS很好地打破。我将

重新考虑设计。有一些例子供我思考。更多

建议随时欢迎。


-

骑自行车的吉他手
http://www.TheBicyclingGuitarist.net/


Thank you, Jim. So if I leave the nav buttons written as one horizontal
list, it won''t break nicely with the borders I specify. I''d like to believe
there''s some way to get this "look" AND break nicely with CSS. I will
rethink the design. There are examples out there for me to ponder. More
suggestions are always welcome of course.

--
The Bicycling Guitarist
http://www.TheBicyclingGuitarist.net/


这篇关于丑陋的包裹休息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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