编辑:我已经删除了<br>
几个人指出的可能导致问题的标签,并使用更正确的 CSS 重新创建了相同的布局,我在下面包含了它(width:100%
在标签上使用而不是中断),但我仍然得到同样的错误。
我column-count:2
用来将一些分组列表放入列中。
我不经常写这个,但在 IE 上它按预期工作,所有分组列表分成 2 列。
然而,在 Chrome 上,它并没有分成很短的一组,只有两个选项。为什么是这样?
IE版本,按预期工作
Chrome 没有将第一个短组分成 2 列
.aoi {
column-count: 2;
padding: 1em 1em 1em 2em;
}
.bfsubs_option_label {
background: url(checkbox_bg.png);
background-repeat: no-repeat;
padding: 0 0 0 1.75em;
height: 18px;
cursor: pointer;
display: inline-block;
margin-bottom: .5em;
background-position: 0 2px;
width: 100%;}
<div class="aoi types-of-communication" style="">
<input name="option_19807" id="option_19807" type="checkbox" class="bfsubs_option" checked="" data-sub-id="19807">
<label class="bfsubs_option_label" for="option_19807">Event Invitations</label>
<input name="option_20000" id="option_20000" type="checkbox" class="bfsubs_option" data-sub-id="20000">
<label class="bfsubs_option_label" for="option_20000">Insights</label><br>
</div>