カスタム ツリーの作成では、画像の後にラベルを付けて使用しています。問題は、ラベルがオーバーフローすると画像の下に入り、テキストの開始点に合わせる必要があることです。cssでそれを行うにはどうすればよいですか。
サンプルコード:
<html>
<body>
<div class="maindivclass">
<ul>
<li id="TR_239984" class="liclass">
<img src="http://dummyimage.com/32x16" class="imgclass" />
<label class="labelclass">This is a long text to show wrapping of the text from the box edge</label>
</li>
<li id="TR_239985" class="liclass">
<img src="http://dummyimage.com/32x16" class="imgclass" />
<label class="labelclass">This is another long text to show wrapping of the text from the box edge</label>
</li>
</ul>
</div>
</body>
</html>
こちらでサンプルをご確認ください
私はそれを次のようにする必要があります: http://imgur.com/Yp9hC
どちらかをクリックすると2つの異なることが行われるため、画像とテキストを別々にする必要があるため、リストスタイルに背景画像を使用できない限り、それを使用することはできません。
ありがとう