无法内嵌显示列表项

发布于 2024-12-27 06:56:57 字数 293 浏览 3 评论 0原文

请参考http://jsfiddle.net/4kSpz/

显示每个li内联,但由于某种原因

不是内联的。

我需要包含哪些额外的 css 才能将

项与其他列表项内联移动?

Please refer to http://jsfiddle.net/4kSpz/

Each li is shown inline, but for some reason the <dl><dt> is not inline.

What extra css do I need to include to move the <dl><dt> item inline with the other list items?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

飞烟轻若梦 2025-01-03 06:56:57

.dselector dt.dselector dt a span 中,您使用的是 display: block

您可以将其更改为 display: inline-block 以保持其内联并显示为块。或者如果你想支持IE7,你可以使用float: left;只要记住清除你的漂浮物即可。

使用inline-blockhttp://jsfiddle.net/4kSpz/2 /

使用 float: left : http://jsfiddle.net/4kSpz/3/

In .dselector dt and .dselector dt a span you are using display: block.

You can change this to display: inline-block to keep it inline and display as block. Or if you want to support IE7 you can use float: left; just remember to clear your floats.

Using inline-block: http://jsfiddle.net/4kSpz/2/

Using float: left : http://jsfiddle.net/4kSpz/3/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文