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 に答える