タイトル、テキスト、イメージのリストがあります。テキストが不十分な場合はリストが破損します。リストはそれ自身のネストを開始します。浮遊画像を使用しているときにHTMLリストが縦に整列していません
<ul>
<li><img style="float:left"><h3>title</h3> ... some text here</li>
<li><img style="float:left"><h3>title</h3> ... some text here</li>
<li><img style="float:left"><h3>title</h3> ... some text here</li>
</ul>
私はここに例があります。
http://jsfiddle.net/2z6Zn/246/
img {
float: left;
margin-right: 0.1em;
}
<ul>
<li>
<h3>photo</h3>
<img src="http://commons.cathopedia.org/w/images/commons/thumb/f/fe/Carnevale_di_Venezia.JPG/250px-Carnevale_di_Venezia.JPG" />some text next to the photo
</li>
<li>
<h3>photo</h3>
<img src="http://commons.cathopedia.org/w/images/commons/thumb/f/fe/Carnevale_di_Venezia.JPG/250px-Carnevale_di_Venezia.JPG" />some text next to the photo
</li>
<li>
<h3>photo</h3>
<img src="http://commons.cathopedia.org/w/images/commons/thumb/f/fe/Carnevale_di_Venezia.JPG/250px-Carnevale_di_Venezia.JPG" />some text next to the photo
</li>
</ul>
この問題を修正するための最良の方法は何?
これは、あなたの質問に答えた場合、私に知らせて@Erik ...必要に応じて手直しします...ありがとう! – kukkuz
ああ、それは素晴らしいです!ありがとう、それは私に行くだろう! –