0
jQuery 및 Foundation 프레임 워크를 사용하고 있습니다. Wordpress 테마에 내장되어 있기 때문에, 대신에 단락 $
을 사용해야합니다.Divs resize with jQuery resize()
jQuery는 페이지를로드 할 때 슬라이드의 크기를 조정합니다. 그러나 브라우저 창 크기를 조정하면 크기가 조정되지 않습니다. 나는 많은 것들을 시도했지만 작동시키지 못합니다. (테두리 상자, 별도의 기능, 다른 구문).
jQuery(document).ready(function($) {
var width = jQuery(window).width(),
height = jQuery(window).height() - jQuery('.top-bar').height();
jQuery('.slide').height(height).width(width);
jQuery('.slide4 > div > img').height(height*.5);
jQuery(window).resize(function() {
jQuery('.slide').height(height).width(width);
jQuery('.slide4 > div > img').height(height*.5);
});
});