目前我正在做一个元素,其中数据绑定(bind)在一个列表中,但这里我的 ListView 数据相互重叠。下面是屏幕短
注:先li
数据重叠第二。如何自动增加 <li>
的高度关于数据长度的标记?
这是我的 ListView CSS:
.listInnerLi
{
list-style: none;
display: block;
font-family: 'Gotham-Light', sans-serif;
font-size: 0.8em;
background: #000839;
border-top: 1px solid rgba(255, 255, 255, 0.2);
min-height: 60px;
width: 100%;
height: auto !important;
}
最佳答案
尝试使用它。刚刚添加了高度 60px 和填充 2px。并删除了自动高度。
.listInnerLi
{
list-style: none;
display: block;
font-family: 'Gotham-Light', sans-serif;
font-size: 0.8em;
background: #000839;
border-top: 1px solid rgba(255, 255, 255, 0.2);
min-height: 60px !important;
height:60px;
width: 100%;
padding:2px;
}
关于jquery - 列表标签重叠,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19463473/