iPad OS7の Safari7.0で確認したときに、下記CSSだと要素が縦並びでなく、横並びになります。
そもそもの使い方をマズってるのでしょうか・・・
何かご存知の方がいらっしゃいましたら、ご教授願います。
css
1.flexBox { 2 display: flex; 3 display: -ms-flexbox; /* IE10以下対応 */ 4 display: -webkit-flex; /* Safari対応のつもり */ 5 flex-direction: column; 6 -ms-flex-direction: column;/* IE10以下対応 */ 7 -webkit-flex-direction: flex; /* Safari対応のつもり */ 8 -webkit-box-orient: block-axis; 9} 10 11/* 親要素 */ 12#content { 13 width: 300px; 14 border: 1px solid #333; 15} 16 17/* 子要素's */ 18#content #sub1 { background-color: #55ffdd } 19#content #sub2 { background-color: #ff55dd } 20#content #sub3 { background-color: #ddff55 } 21
html
1<div id="content" class="flexBox"> 2 <div id="sub1">1</div> 3 <div id="sub2">2</div> 4 <div id="sub3">3</div> 5</div>
デモ、あります⇒ CodePen
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/08/22 08:28