$(document).ready(function(){ $(".mvisual").slick({ dots: true, arrows: false, autoplay: true, autoplaySpeed: 3000 }); $(".pro_slide").slick({ dots: true, arrows: false, autoplay: true, autoplaySpeed: 3000 }); $(".footer dt").click(function(){ $(this).next("dd").slideToggle("fast"); }); var userAgent, ieReg, ie; userAgent = window.navigator.userAgent; ieReg = /msie|Trident.*rv[ :]*11\./gi; ie = ieReg.test(userAgent); //ie 일 때 object-fit 효과 if(ie) { $(".img_container").each(function () { var $container = $(this), imgUrl = $container.find("img").prop("src"); if (imgUrl) { $container.find("img").css({'display':'none'}); $container.css({"backgroundImage":'url(' + imgUrl + ')', "background-size":"contain", "background-repeat":"no-repeat", "height":"320px", "width":"100%", "max-width":"100%", "background-position":"center" }); } }); } });