我有一个复选框列表,我想在一条水平线上隔开。
<div class="timesheet-daily-entry-fields-container">
<input id="TimesheetMondayCheckbox" class="timesheet-daily-checkbox" type="checkbox"/>
<input id="TimesheetTuesdayCheckbox" class="timesheet-daily-checkbox" type="checkbox"/>
<input id="TimesheetWednesdayCheckbox" class="timesheet-daily-checkbox" type="checkbox"/>
<input id="TimesheetThursdayCheckbox" class="timesheet-daily-checkbox" type="checkbox"/>
<input id="TimesheetFridayCheckbox" class="timesheet-daily-checkbox" type="checkbox"/>
<input id="TimesheetSaturdayCheckbox" class="timesheet-daily-checkbox" type="checkbox"/>
<input id="TimesheetSundayCheckbox" class="timesheet-daily-checkbox" type="checkbox"/>
</div>
它们显示在行上,但我想将它们隔开更多。
.timesheet-daily-checkbox {
margin: 10px;
padding: 10px;
display:inline-block;
overflow:hidden
}
我宁愿不围绕每个输入创建一个 div,有没有更简单的方法?