0

我试图让一些文本换行所以我有这个:

h3.h3_title {
    white-space:normal !important;
}

这是html:

<li>
<a href="#">
<img src="img.png" />
<h3 class="h3_title">this is some text which is supposed to wrap but it is not happening</h3>
</a>
</li>

出于某种原因,它没有包装......为什么?

4

1 回答 1

6
h3.h3_title {
    white-space:normal !important;
    width:20px !important;
}

根据您的条件设置宽度

于 2012-09-29T09:01:13.083 回答