我可以使用Clusterize.js作为内联块元素吗?
<div id="scrollArea" class="clusterize-scroll">
<div id="contentArea" class="clusterize-content">
{% for index in 0..300 %}
<div style="height: 200px; width: 200px; ">item {{ index }}</div>
{% endfor %}
<div>
<div>
var clusterize = new Clusterize({
scrollId: 'scrollArea',
contentId: 'contentArea'
});
.clusterize-scroll {
max-height: 810px
overflow: auto
}如果是div.style="display:block",它可以工作,但我需要使用div.style="display:inline-block"。
发布于 2015-11-11 14:05:51
作者在这里。
Clusterize.js不支持单行中的多项。
元素可以是显示:内联块,但它们必须是宽度: 100%。
发布于 2015-10-27 07:46:22
将其添加到样式中:
#contentArea.clusterize-content > div{ display:inline-block; }https://stackoverflow.com/questions/33362259
复制相似问题