2016-05-02 11 views
2

iPhone 6 plusのメディアクエリを設定すると、ランドスケープの向きではうまく描画されますが、 iPhone 4Sのコントロール。これを避けるにはどうすればよいですか?私はこれがブートストラップの.wellを上書きするように設定したパディングのためだと知っていますが、設定しないと、コントロール内に不必要なスペースがたくさんあります。あなたがこれを追加しましたiPhone 6 Plus(ランドスケープ)のメディアクエリと重複するiPhone 4/4S(ランドスケープ)のメディアクエリ

/iPhone 4と4S風景/

@media only screen 
and (min-device-width : 320px) 
and (max-device-width : 480px) 
and (orientation : landscape) { 

h1, .h1{ 
    font-size:26px; 
} 


.well{ 
    padding: 59px; 
} 
} 

/iPhone 6 Plusの風景の中に/

@media only screen 
and (min-device-width : 414px) 
and (max-device-width : 736px) 
and (orientation : landscape) { 

.mt-4x{ 
    margin-top:20px !important; 
} 

.well{ 
    padding: 175px; 
} 
} 
+0

あなたも、関連するHTMLを投稿することができますか? – ZimSystem

+0

ランドスケープ/メディアクエリ(最小デバイス幅:414px)から/ iPhone 6 Plusを(最小デバイス幅:479px)に変更すると、それは重複しません –

+0

@Skellyはhtmlコード – sumedha

答えて

0

:ここ

は私のCSSコードでありますあなたのiPhoneのためのあなたのCSSのメディアクエリに?

/* iPhone 6 in portrait & landscape */ 
 
@media only screen 
 
and (min-device-width : 375px) 
 
and (max-device-width : 667px) { 
 
    
 
} 
 

 
/* iPhone 6 in landscape */ 
 
@media only screen 
 
and (min-device-width : 375px) 
 
and (max-device-width : 667px) 
 
and (orientation : landscape) { 
 
    
 
} 
 

 
/* iPhone 6 in portrait */ 
 
@media only screen 
 
and (min-device-width : 375px) 
 
and (max-device-width : 667px) 
 
and (orientation : portrait) { 
 
    
 
} 
 

 
/* iPhone 6 Plus in portrait & landscape */ 
 
@media only screen 
 
and (min-device-width : 414px) 
 
and (max-device-width : 736px) { 
 
    
 
} 
 

 
/* iPhone 6 Plus in landscape */ 
 
@media only screen 
 
and (min-device-width : 414px) 
 
and (max-device-width : 736px) 
 
and (orientation : landscape) { 
 
    
 
} 
 

 
/* iPhone 6 Plus in portrait */ 
 
@media only screen 
 
and (min-device-width : 414px) 
 
and (max-device-width : 736px) 
 
and (orientation : portrait) { 
 
    
 
} 
 

 
/* iPhone 5 & 5S in portrait & landscape */ 
 
@media only screen 
 
and (min-device-width : 320px) 
 
and (max-device-width : 568px) { 
 
    
 
} 
 

 
/* iPhone 5 & 5S in landscape */ 
 
@media only screen 
 
and (min-device-width : 320px) 
 
and (max-device-width : 568px) 
 
and (orientation : landscape) { 
 
    
 
} 
 

 
/* iPhone 5 & 5S in portrait */ 
 
@media only screen 
 
and (min-device-width : 320px) 
 
and (max-device-width : 568px) 
 
and (orientation : portrait) { 
 
    
 
} 
 

 
/* 
 
    iPhone 2G, 3G, 4, 4S Media Queries 
 
    It's noteworthy that these media queries are also the same for iPod Touch generations 1-4. 
 
*/ 
 

 
/* iPhone 2G-4S in portrait & landscape */ 
 
@media only screen 
 
and (min-device-width : 320px) 
 
and (max-device-width : 480px) { 
 
    
 
} 
 

 
/* iPhone 2G-4S in landscape */ 
 
@media only screen 
 
and (min-device-width : 320px) 
 
and (max-device-width : 480px) 
 
and (orientation : landscape) { 
 
    
 
} 
 

 
/* iPhone 2G-4S in portrait */ 
 
@media only screen 
 
and (min-device-width : 320px) 
 
and (max-device-width : 480px) 
 
and (orientation : portrait) { 
 
    
 
}

+0

はい、私はすべてをやりました – sumedha

+0

サイトは現在動作していますか?あなたのページへのリンクを投稿しない場合は、 – mlegg

+0

あなたがあなたの答えに投稿したメディアクエリは、私が質問に投稿したのとまったく同じものです。唯一の違いは、あなたがすべてのスクリーン用に投稿したことです。私はiPhone 4sと6 plus専用に投稿しました。なぜなら、それらが私に問題をもたらした唯一のものだったからです。私はメディアのクエリが重ならないようにこれを行う別の方法を求めました。私はこの問題を解決するまでウェブサイトをホストすることができないので、私はリンクを投稿できません。 – sumedha

関連する問題