나는 StatCounter 정보를 바탕으로 다섯 중단 선택 결국 :
이이 번호, 내 테스트를 기반으로 2012 년 12 월
까지 최대입니다, 다른 사람에게 말하기 I 다음 옵션을 선택하십시오.
/*Monitors Large than 1920px, image has "soft" edges to blend into background */
@media (min-width:1921px){
html, body{
background: url(/images/backgrounds/1920-bg-large.jpg) no-repeat center top fixed #190303;
background-size:100% auto;
}
}
/* Mointores ranging from 1367px - 1920px */
@media (min-width:1367px) and (max-width:1920px){
html, body{
background: url(/images/backgrounds/1920-bg.jpg) no-repeat center top fixed #190303;
background-size:100% auto;
}
}
/* Mointores ranging from 769px - 1366px */
@media (min-width:769px) and (max-width:1366px){
html, body{
background: url(/images/backgrounds/1366-bg.jpg) no-repeat center top fixed #190303;
background-size:100% auto;
}
}
/* Tablets like the iPad 2 and iPad Mini */
@media (max-width:768px){
html, body{
background: url(/images/backgrounds/768-bg.jpg) no-repeat center top fixed #190303;
background-size:100% auto;
}
}
/* At a certain point the Background images become irrelevant as they are hidden behind other elements. Changed to a solid BG */
@media handheld, only screen and (max-width: 640px) {
html, body{
background:#190303;
}
}
출처
2013-01-26 03:51:24
L84
두 가지 방법을 모두 사용하는 것이 좋습니다. 두 이미지 (예 : width = 500px 및 width = 1500px)를 준비하고 화면 너비가 750보다 작 으면 500px를 사용하고 메모리가 부족하고 대역폭이 제한되어있는 태블릿부터 1500px를 사용해야합니다. 또한 css로 화면에 맞 춥니 다. – benbai123