이 스크립트를 가져 오는 중에 문제가 발생했습니다.jQuery 미디어 쿼리가 잘못되었습니다.
당신의 코드가 조금 이상하다$(window).resize(function() {
if ($(this).width() >= 1280) {
$(function(){
$('.img-wrap, .qoute-background') .css({'min-height': (($(window).height()))+'px'});
$(window).resize(function(){
$('.img-wrap, .qoute-background') .css({'min-height': (($(window).height()))+'px'});
});
});
}
});
하지만 모든 해상도에서 표시 할 것 같다. 해상도가 1280px 이상이 될 때만 스크립트를 실행해야합니다. – Farreal
@ DanFarrell 답변을 업데이트했습니다. – idmean
아직 행운을 얻지 못했습니다. 내 화면을 새로 고치면 크기가 조정되지만 반복해서 크기를 조정하면 작동하지 않습니다. S – Farreal