저는 phonegap으로 앱을 개발하고 있습니다. 필자는 메인 어플리케이션 영역의 일부 버튼을 레이아웃하기 위해 flexbox를 사용하고자했습니다.flexbox 및 wrap 속성
누군가가 왜이 http://jsfiddle.net/apYLB/이 최신 크롬에 요소를 포함하지 않는지 설명 할 수 있습니까?
HTML :
<div class="flex-container">
<div class="flex-item">1</div>
<div class="flex-item">2</div>
<div class="flex-item">3</div>
<div class="flex-item">4</div>
<div class="flex-item">5</div>
<div class="flex-item">6</div>
</div>
CSS :
.flex-container {
display: -webkit-box;
display: flex;
flex-wrap: wrap;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
-webkit-flex-direction: row;
-webkit-flex-flow: row wrap;
flex-flow: row wrap;
-webkit-box-align: end;
-moz-box-align: end;
box-align: end;
-webkit-box-pack: center;
-moz-box-pack: center;
box-pack: center;
justify-content:space-around;
height:100%;
}
.flex-item {
margin:0 10px 25px 0;
width:86px;
border:1px solid #000;
}
.flex-item img {
max-height:80px;
}
그들은 horizzontally 배치되어 만 3 반 상자가 나타납니다.
다음은 초안의 속성/값을 비교하는 데 유용한 차트입니다. https://gist.github.com/cimmanon/727c9d558b374d27c5b6 – cimmanon