2016-04-16 25 views
0

Bevor Apple das letzte iOS-Update 9.3.1 im März 2016 veröffentlicht hat, passen alle meine Web-Server in den Bildschirm eines iPhones (Querformatmodus) und iPads (Hoch- und Querformat).Fit Website auf iPhone und iPad Bildschirmfenster?

Nach der Veröffentlichung erscheinen meine Websites gezoomt und ich muss hinein/heraus wischen, damit die Website wieder auf den gesamten Bildschirm passt. Ich habe viele Dinge ausprobiert, die ich in verschiedenen Foren fand, aber keine half ...

Das Tag <meta name="viewport" content="width=device-width, initial-scale=1"> verwenden, um es zu machen, und plötzlich aufgehört zu arbeiten. Irgendeine Idee?

Sie können ein Beispiel an www.buenosaireshelicopter.com

See site after iOS 9.3.1 update

See site before iOS 9.3.1 update

+0

tun Sie Medienanfragen in Ihrem CSS haben? Veröffentlichen Sie Ihre CSS-Code bearbeiten: Ich fand Ihre CSS, lass mich schauen – mlegg

+0

Ich habe Medienabfragen für kleine Bildschirmauflösungen, ich hatte sie vor diesem Update und alles hat gut funktioniert. Ich habe nichts seitdem geändert, aber meine Website wird nicht mehr auf die gleiche Weise angezeigt – Phil

Antwort

1

Ich benutze für meine Websites. Es mag übertrieben sein, aber ich hatte nie ein Problem.

/* Smartphones (portrait and landscape) ----------- */ 
 
@media only screen 
 
and (min-device-width : 320px) 
 
and (max-device-width : 480px) { 
 
/* Styles */ 
 
} 
 

 
/* Smartphones (landscape) ----------- */ 
 
@media only screen 
 
and (min-width : 321px) { 
 
/* Styles */ 
 
} 
 

 
/* Smartphones (portrait) ----------- */ 
 
@media only screen 
 
and (max-width : 320px) { 
 
/* Styles */ 
 
} 
 

 
/* iPads (portrait and landscape) ----------- */ 
 
@media only screen 
 
and (min-device-width : 768px) 
 
and (max-device-width : 1024px) { 
 
/* Styles */ 
 
} 
 

 
/* iPads (landscape) ----------- */ 
 
@media only screen 
 
and (min-device-width : 768px) 
 
and (max-device-width : 1024px) 
 
and (orientation : landscape) { 
 
/* Styles */ 
 
} 
 

 
/* iPads (portrait) ----------- */ 
 
@media only screen 
 
and (min-device-width : 768px) 
 
and (max-device-width : 1024px) 
 
and (orientation : portrait) { 
 
/* Styles */ 
 
} 
 

 
/* Desktops and laptops ----------- */ 
 
@media only screen 
 
and (min-width : 1224px) { 
 
/* Styles */ 
 
} 
 

 
/* Large screens ----------- */ 
 
@media only screen 
 
and (min-width : 1824px) { 
 
/* Styles */ 
 
} 
 

 
/* iPhone 4 ----------- */ 
 
@media 
 
only screen and (-webkit-min-device-pixel-ratio : 1.5), 
 
only screen and (min-device-pixel-ratio : 1.5) { 
 
/* Styles */ 
 
} 
 
/* iPhone 6 landscape */ 
 
@media only screen and (min-device-width: 375px) 
 
    and (max-device-width: 667px) 
 
    and (orientation: landscape) 
 
    and (-webkit-min-device-pixel-ratio: 2) 
 
{ } 
 

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

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

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

 
/* iPhone 6 and 6 Plus */ 
 
@media only screen 
 
    and (max-device-width: 640px), 
 
    only screen and (max-device-width: 667px), 
 
    only screen and (max-width: 480px) 
 
{ } 
 

 
/* Apple Watch */ 
 
@media 
 
    (max-device-width: 42mm) 
 
    and (min-device-width: 38mm) 
 
{ }

+0

Ich habe nur Ihre Medienabfragen in meine CSS kopiert, aber nichts geändert :( – Phil

+0

haben Sie den CSS-Cache gelöscht? Welchen Browser sehen Sie es in? – mlegg

+0

yep, funktioniert es jetzt gut für dich, denn es macht keinen Unterschied hier – Phil