我有一个复选框列表,每一个都带有一个标签:CSS格式复选框
<input type="checkbox" id="patient-birth_city" name="patient-birth_city" />
<label for="patient-birth_city">(_PATIENT_BIRTH_CITY_)</label>
<input type="checkbox" id="patient-birth_state" name="patient-birth_state" />
<label for="patient-birth_state">(_PATIENT_BIRTH_STATE_)</label>
<input type="checkbox" id="patient-birth_country" name="patient-birth_country" />
<label for="patient-birth_country">(_PATIENT_BIRTH_COUNTRY_)</label>
Without using any CSS它们在同一行显示(我想他们有一个默认的“内联”或“块直列“显示)。问题是我无法修改HTML结构,我需要每对checkbox-label出现在一个新行中。 Like this。有没有可能只使用CSS?
他说他不能修改html结构,所以这不是一个解决方案。请阅读这个问题。 – Willem
@Willem,哦,是误读那部分。 – Tomgrohl