li ul li太长了,换行但没有缩进 [英] li ul li is too long, line wraps but no indention

查看:1758
本文介绍了li ul li太长了,换行但没有缩进的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个无序的HTML列表( ul )。如果第二个字太长,行自动换行,但溢出的文本不缩进。
任何想法如何解决?

I've an unordered HTML list (ul). If the second word is too long the line wraps automatically but the overflowing text isn't indented. Any ideas how to solve that?

以下是示例:
http://tinyurl.com/yk32ek6
然后点击Leistungen,然后点击KINDERZAHNHEILKUNDE。现在你看到我的意思了。

Here is the example: http://tinyurl.com/yk32ek6 Then "Leistungen" and then click on KINDERZAHNHEILKUNDE. Now you see what I mean.

可能是因为css,不知道。

Probably it's because of the css, don't know about that.

推荐答案

用填充替换缩进

padding-left: 2em;
text-indent: -2em;

应该做的

这篇关于li ul li太长了,换行但没有缩进的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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