別の div 内に 3 つの div があります。
<div id="parentDiv" style="float:right;">
<div id="childDiv1" style="float:left;">
<b>Text1</b>
</div>
<div id="childDiv2" style="float:left;">
<img src="smiley.gif" alt="Smiley face" height="42" width="42">
</div>
<div id="childDiv3" style="float:left;">
<input type='checkbox' />
</div>
<div>
並べて表示する必要があるため、 として設定しましたfloat:left
。
問題は、彼らがこのように見えることです...
...テキストが上部に垂直に配置されます。私はそれが真ん中にある必要があります。
NB非常によく似た問題に関する投稿を見つけましたが、フローティングが原因で失敗するようです。