이미지 리사이징 스크립트 및 css 수정

This commit is contained in:
chicpro
2013-01-25 17:29:10 +09:00
parent ff2705f56c
commit fd97e6a844
2 changed files with 3 additions and 9 deletions

View File

@ -180,14 +180,10 @@ $(window).load(function() {
view_image_resize();
});
$(window).resize(function(){
view_image_resize();
});
function view_image_resize()
{
var $img = $('#bo_v_img img');
var img_wrap = $('#bo_v_img').width();
var $img = $('#bo_v_atc img');
var img_wrap = $('#bo_v_atc').width();
$img.each(function() {
var img_width = $(this).width();
@ -197,8 +193,6 @@ function view_image_resize()
} else if (img_width <= img_wrap && img_width >= $(this).data("width")) {
$(this).removeClass('img_fix');
}
alert($(this).data("width"));
});
}
</script>