Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> problem z media-queries
denispl
post
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
Go to the top of the page
+Quote Post

Posty w temacie
- denispl   problem z media-queries   8.02.2012, 14:47:57


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.08.2025 - 07:31