0
페이지 초기화 또는 페이지 크기 조정시 높이 계산에 차이가있는 것으로 보입니다.Jquery .ready와 .resize 사이의 높이 차이 계산
실마리가있는 사람은 누구입니까? 또는 그것을 고치는 방법?
예제 코드
$(document).ready(function() {
showcase_height_init();
$(window).resize(function() {
showcase_height_init();
});
});
function showcase_height_init() {
var showcase_container_text_height = ($("#showcase_container_text").height())/2;
$("#showcase_container_text").css({
margin: '-'+showcase_container_text_height+'px 0 0'
});
}