2016-04-28 9 views
0

私はCSSのこの部分を持っていますが、CSSファイル全体にプレフィックスが付いていて(Pleeeeaseでダブルチェックされていますが)、ChromeとSafariに問題があります。任意の手掛かりはなぜですか?行(.deuxcases)にフレックス動作を持つ2つのボックスがあり、各ボックスには列(2 x .case)のフレックス動作がありますが、ChromeとSafariでは長い間乱雑な行があり、 Firefox。私はChrome 50とSafari 8.0.2を使用しています。あなたはプレフィックス付きでもChromeとSafariのCSSに関する問題

.deuxcases { 
margin-top: 70px; 
max-height: 60vh; 
display: -webkit-box; 
display: -webkit-flex; 
display: -ms-flexbox; 
display: flex; 
-webkit-box-orient:horizontal; 
-webkit-box-direction:normal; 
-webkit-flex-direction:row; 
    -ms-flex-direction:row; 
     flex-direction:row; 
-webkit-flex-wrap:nowrap; 
    -ms-flex-wrap:nowrap; 
     flex-wrap:nowrap; 
-webkit-box-pack:justify; 
-webkit-justify-content:space-between; 
    -ms-flex-pack:justify; 
     justify-content:space-between; 
} 

.case { 
display: -webkit-box; 
display: -webkit-flex; 
display: -ms-flexbox; 
display: flex; 
-webkit-box-orient:vertical; 
-webkit-box-direction:normal; 
-webkit-flex-direction:column; 
    -ms-flex-direction:column; 
     flex-direction:column; 
-webkit-box-pack:center; 
-webkit-justify-content:center; 
    -ms-flex-pack:center; 
     justify-content:center; 
-webkit-flex-wrap:wrap; 
    -ms-flex-wrap:wrap; 
     flex-wrap:wrap; 
-webkit-box-flex:1; 
-webkit-flex:1; 
    -ms-flex:1; 
     flex:1; 
padding:auto; 
margin:10%; 
height: auto; 
min-width: 25vw; 
box-shadow: .5em .5em .5em .5em #aaa; 
} 
+2

ので、我々はそれで遊ぶことができますフィドルやあなたのコードで同様に提供してください –

+0

確かに、申し訳ありません:そこにあなたがいるhttp://codepen.io/jgrandsenne/pen/KzGmvo –

+0

質問が-1に設定されているのはなぜですか?問題がありますか? –

答えて

0

あなたはいつもautoheightwidth明示的な値にしていないを設定してみてくださいありがとうございました。後者はブラウザ間で一貫して動作しないため、このレイアウトでは苦労しています。

.caseクラスの高さを100%の代わりにに設定すると、期待どおりに機能します。このよう

.case { 
    display: -webkit-box; 
    display: -webkit-flex; 
    display: -ms-flexbox; 
    display: flex; 
    -webkit-box-orient:vertical; 
    -webkit-box-direction:normal; 
    -webkit-flex-direction:column; 
     -ms-flex-direction:column; 
      flex-direction:column; 
    -webkit-box-pack:center; 
    -webkit-justify-content:center; 
     -ms-flex-pack:center; 
      justify-content:center; 
    -webkit-flex-wrap:wrap; 
     -ms-flex-wrap:wrap; 
      flex-wrap:wrap; 
    -webkit-box-flex:1; 
    -webkit-flex:1; 
     -ms-flex:1; 
      flex:1; 
    padding:auto; 
    margin:10%; 
    height: 100%; 
    min-width: 25vw; 
    box-shadow: .5em .5em .5em .5em #aaa; 
} 
+0

ありがとうございました –

関連する問題