Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I am trying to provide different css styles for iphone 4 and galaxy note 2 . but whatever i try for iphone 4 also runs on the note 2 and i am not able to provide a different css for it . here is what i am trying to do in the order i have placed

@media screen and (min-width : 360px) and (max-width : 640px) and (orientation: portrait) {
    // note 2 portrait code
}

@media screen and (min-width : 360px) and (max-width : 640px) and (orientation: landscape) {
    // note 2 landscape code
}

@media screen and (min-width : 320px) and (max-width : 640px) and (orientation: portrait) {
    // iphone 4 portrait code
}

@media screen and (min-width : 320px) and (max-width : 640px) and (orientation: landscape) {
    // iphone 4 landscape code
}

please help me out

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
232 views
Welcome To Ask or Share your Answers For Others

1 Answer

max-width for iphone 4 should be 480 not 640px.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...