为什么内联列表项不包裹? [英] Why do inline list-items not wrap?

查看:71
本文介绍了为什么内联列表项不包裹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请参阅演示

li 不会换行到下一行?

我不是在寻找解决方案,因为有几个和他们工作。但我想知道为什么它不包装。

I'm not looking for a solution, because there are several and they work. But I'm wondering WHY it doesn't wrap.

关于它的规范(或我看不到)。

这个问题是与我提供的答案相关此处

This question is related to an answer I gave here.

推荐答案

它们之间没有空格。

这听起来很奇怪,因为浏览器应该能够打破元素之间,但你使用 display:inline; 将元素转换为字。在这种情况下,浏览器看到

This sounds odd because the browser should be able to break between elements but you turned the elements into "words" using display: inline;. In this case, the browser "sees"

americaaustraliabannercabalcomputerfamilygeneralgwholsisraellastchaosmepeterpanphotospotbsPoTBSpsorforyzomtantratattoostemplatestravelweb_designwowmjboxquakeliveSpain_2011Sanatorio_de_Turberculososseverallsseveralls2bush_boake_allenodeon-colchestermoredartford

,它不知道如何拆分这个怪物词。

and it has no idea how to split this monster word.

这篇关于为什么内联列表项不包裹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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