![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 2 Pomógł: 0 Dołączył: 8.02.2012 Ostrzeżenie: (0%) ![]() ![]() |
witam, mam problem z wyswietleniem na iphony odpowiedniego arkusza stylow, mam cos takiego:
Cytat * {margin:0; padding:0;} body { text-align:center; /* dla wysrodkowania układu w IE6 */ font-family:lucida, arial, sans-serif; } /* Smartphones (portrait and landscape) ----------- */ @media only screen and (min-device-width : 320px) and (max-device-width : 480px) { #main {width:320px; height:200px; background:green; } } /* Smartphones (landscape) ----------- */ @media only screen and (min-width : 321px) { #main{ width:400px; height:200px; background:green; } } /* Smartphones (portrait) ----------- */ @media only screen and (max-width : 320px) { #main { width:320px; height:200px; background:#131313; } } /* iPads (portrait and landscape) ----------- */ @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) { #main { width:320px; height:200px; background:#aac; } } /* iPads (landscape) ----------- */ @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) { #main { width:320px; height:200px; background:#aac; } } /* iPads (portrait) ----------- */ @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) { #main { width:320px; height:200px; background:#aac; } } /* Desktops and laptops ----------- */ @media only screen and (min-width : 1224px) { #main { width:320px; height:200px; background:yellow; } } chodzi mi o portrait and landscape na iphony (gdy obracasz telefon powinien sie kolor pudelka zmienic) a nic sie nie dzieje.. co robie zle? przykładowa stronka: korykora |
|
|
![]() ![]() |
![]() |
Aktualny czas: 20.08.2025 - 07:31 |