<div class="row">
<div class="input">
<input type="checkbox" id="vehicle1" name="vehicle1" value="Bike">
<label for="vehicle1"> I have a bike</label>
</div>
<div class="input">
<input type="checkbox" id="vehicle2" name="vehicle2" value="Car">
<label for="vehicle2"> I have a car</label>
</div>
<div class="input">
<input type="checkbox" id="vehicle3" name="vehicle3" value="Boat">
<label for="vehicle3"> I have a boat</label>
</div>
<div class="input">
<input type="checkbox" id="vehicle4" name="vehicle1" value="Bike">
<label for="vehicle4"> I have a bike</label>
</div>
<div class="input">
<input type="checkbox" id="vehicle5" name="vehicle2" value="Car">
<label for="vehicle5"> I have a car</label>
</div>
</div>
1条答案
按热度按时间s1ag04yj1#
你可以试试网格
div行是具有3列1fr的网格。
你可以添加你想要的div数,它总是3列
你可以把div行放到一个容器里。