<ul>
これは私が使用している水平線のコードです:
.list ul{
width: 100%;
}
.list li{
display: inline;
list-style-type: none;
padding-right: 20px;
padding-bottom: 20px;
}
これを使用して、私がこれを行う場合:
<ul class="list">
<li>
<img src="myImg.png" />
<span class="edit"></span>
<span class="delete"></span>
</li>
</ul>
<br>
その後、すべて機能しますが、画像と編集/削除ボタンの間に置くと、たとえば次のようになります。
<ul class="list">
<li>
<img src="myImg.png" />
<br />
<span class="edit"></span>
<span class="delete"></span>
</li>
</ul>
次にリストが壊れ、画像が水平ではなく垂直のリストに表示されます。動作中のスクリーンショット:
動作しないときのスクリーンショット:
何か案は?