인라인 블록으로 형식이 지정되지 않은 목록이있는 경우 다른 요소에 블록 내용이 있으면 목록의 마지막 목록 요소에 여분의 위쪽 여백이있는 것으로 보입니다. 이 HTML에서보세요 :목록 요소의 CSS 서식에 부적절한 여백이 있습니다
#report_builder li {
font-size: 8pt;
}
#report_builder > ul {
float: left;
}
.report_layout {
height: 150px;
}
.report_layout > li {
display: inline-block;
padding: 5px;
margin-left: 2px;
border: 1px solid #ccc;
border-top: 10px solid #ccc;
height: 100px;
background-color:#fff;
}
.report_layout > li:last {
cursor: default;
}
.report_layout > li a {
cursor: pointer;
}
.report_layout > li:nth-child(even) {
background-color:#eee;
}
#report_builder input.report-column-value {
width: 95px;
}
왜 마지막 목록 요소가 드롭 다운 않습니다
여기<div id="report_builder">
<ul id="report_layout_1" class="report_layout ui-droppable">
<li rel="recid">Id
<div><input type="text" class="report-column-value"></div>
</li>
<li rel="street1">Address
<div><input type="text" class="report-column-value"></div>
</li>
<li>
Last Field
</li>
</ul>
</div>
는 CSS입니까? 내가하는 일을 데모하는 fiddle입니다.
정답입니다. .report_layout> li'에'vertical-align : top;'을 추가하십시오. –
그건 제가 누락 된 부분입니다! 정말 고마워. – davidethell