레이블과 텍스트가 나란히있는보기 페이지를 만들려고합니다. 이제 오버플로 자동차를 언급하지 않고도 여백에는 문제가 발생하지 않습니다. 왜??왜 여백이 오버플로없이 적용되지 않습니다 : 자동
이것은 내 CSS & html입니다. 자동 :
.dl-horizontal {
margin-bottom: 20px;
/*overflow:auto*/
}
.dl-horizontal dt {
clear: left;
float: left;
font-weight: bold;
line-height: 25px;
width: 160px;
}
.dl-horizontal dd {
content: " ";
display: table;
line-height: 25px;
}
.action-wrap{
clear: both;
margin-top: 20px;
}
<dl class="dl-horizontal">
<dt>Name:</dt> <dd>My Name</dd>
<dt>Description:</dt> <dd>Lorem ipsuem</dd>
<dt>Group:</dt> <dd></dd>
</dl>
<div class="action-wrap ng-scope">
<button class="button cancel" >Cancel</button>
</div>
나는 개인적으로이 문제를 여러 번 얼굴을 내 빠른 수정이 오버 플로우입니다
. 그것을 사용하는 것이 괜찮은지 알고 싶거나 잘못된 것을하고 있는지 알고 싶습니다.
[여백이 붕괴] (https://developer.mozilla.org/en-US/docs/Web/CSS/margin_collapsing) –