답변

0

대형 화면 용과 작은 화면 용 (축소판) 이미지를 복제 할 수 있습니다.

<img src="large.jpg" alt="images alt for big screens" class="show-for-large"/> 
<img src="small.jpg" alt="images alt for small screens" class="show-for-small"/> 

CSS는 :

.show-for-large {display:block;} 
.show-for-small {display:none;} 

@media only screen and (min-device-width : 320px) and (max-device-width : 480px) { 
    .show-for-large {display:none;} 
    .show-for-small {display:block;} 
} 

그리고 당신은 표시 할 수 없음 대형 화면 및 디스플레이를 할 수있는 응답에있는 작은 IMG : 블록;

브라우저는 디스플레이 없음으로 요소를 렌더링하지 않으므로 트릭이 될 수 있습니다.

+0

좁은 뷰포트의 이미지는 숨기지 만 작은 이미지와 큰 이미지는 모두 다운로드됩니다. 웹 속성을 사용하여 확인할 수 있습니다. –

관련 문제