Akıllı telefon yönlendirmesi ve masaüstü için farklı medya sorguları oluşturmaya çalışıyorum, portre ve manzara hedeflemek istiyorum. Ben tüm diğer yığın bağlantıları farkındayım böyle sahiptir:medya sorguları?
Desktop css first
-- csss for desk --
Portrait:
@media only screen and (min-device-width: 320px) and (max-device-width: 479px) {
body {
padding: 0 !important;
}
.infoShowWrapper {
width: 268px;
}
.heroImage {
margin-top: 0;
height: 200px;
width: 100%;
background: #fff url(assets/images/hero_small.jpg) no-repeat center center;
}
.navbar-fixed-top {
margin: 0 !important;
}
.box-item {
width: 280px;
}
.seaBkg {
background-image: url(assets/images/mare_2x.jpg);
}
}
Landscape:
@media only screen and (min-device-width: 480px) and (max-device-width: 640px) {
body {
padding: 0 !important;
}
.heroImage {
margin-top: 0;
height: 200px;
width: 100%;
background: #fff url(assets/images/hero_small.jpg) no-repeat center center;
}
.navbar-fixed-top {
margin: 0 !important;
}
.box-item {
width: 440px;
}
.infoShowWrapper {
width: 440px;
}
.seaBkg {
background-image: url(assets/images/mare_2x.jpg);
}
}
:
Media query to target most of smartphone 3 media queries for iphone portrait, landscape and ipad portrait
Ama hala bir çalışmıyorsa sorunları, benim peyzaj yaşıyorum, bu kullanıyorum kodudur
manzara kodu bile kabul almıyorum gibidir
"ve (yönlendirme: manzara)" eklenmesi masaüstünde –
çok etkili olacak, ancak genişlik bildirimleri masaüstünü filtreleyecek – Danield
ok gotcha! Teşekkürler –