後でスタイルを抽出します。私はまっすぐなHTMLでこれを行う方法を学びたい。大きなチェックボックスを中央に合わせる方法
私のチェックボックスがデフォルトサイズである限り、私のwrap1 div内のすべての内容は真ん中に垂直に整列しています。
私は、チェックボックスのサイズを変更する場合は、垂直整列は動作を停止するように見えます。 Here is my JSFiddle。
<div id="wrapper" style="width: 80%; height: 100%; overflow:hidden; margin: 0 auto; float: left">
<div class="row" style="width: 100%; height: 80%; margin: 0 0 0 0; float: left; background-color: aqua;">
<div id="heading" class="row">
<p style="text-align: center;">This is a title</p>
</div>
<div class="wrap1" style="vertical-align: middle;">
<div style="width: 15%; line-height: 53px; text-align: center; background-color: yellow; display: inline-block;">
<input type="checkbox" style="height: 30px; width: 30px;">
</div><div style="width: 70%; line-height: 53px; background-color: orange; display: inline-block;"><label>Description</label>
</div><div style="width: 15%; line-height: 53px; text-align: center; background-color:green; display: inline-block;">
<label>100</label>
</div>
</div>
</div>
</div>
は、あなたが使用しました ' transform:scale(X) 'チェックボックスのサイズを変更するには? –
いいえ!私はstyle = "height:30px; width:30px;"というスタイルを使用しました。 htmlで。 – Patricia
これはChromeでは機能しませんし、他の 'div'ブロックとの位置合わせを解除します。 –