이미지 리사이징 스크립트 및 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

@ -272,7 +272,7 @@ table a {color:#000;text-decoration:none}
#bo_v_atc {min-height:200px;height:auto !important;height:200px;zoom:1} #bo_v_atc {min-height:200px;height:auto !important;height:200px;zoom:1}
#bo_v_atc:after {display:block;visibility:hidden;clear:both;content:""} #bo_v_atc:after {display:block;visibility:hidden;clear:both;content:""}
#bo_v_atc h1 {margin:0;padding:0;height:0;overflow:hidden} #bo_v_atc h1 {margin:0;padding:0;height:0;overflow:hidden}
#bo_v_img {margin:0 20px} #bo_v_img {margin:0 20px;width:688px;overflow:hidden}
/*#bo_v_img img {max-width:100%;height:auto}*/ /*#bo_v_img img {max-width:100%;height:auto}*/
#bo_v_con {padding:20px;line-height:1.8em} #bo_v_con {padding:20px;line-height:1.8em}
#bo_v_act {padding:20px 0;text-align:center} #bo_v_act {padding:20px 0;text-align:center}

View File

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