diff --git a/css/default.css b/css/default.css index bc5435c66..a5517bfc7 100644 --- a/css/default.css +++ b/css/default.css @@ -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:after {display:block;visibility:hidden;clear:both;content:""} #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_con {padding:20px;line-height:1.8em} #bo_v_act {padding:20px 0;text-align:center} diff --git a/skin/board/neo/view.skin.php b/skin/board/neo/view.skin.php index a72840ec7..ac8e321e5 100644 --- a/skin/board/neo/view.skin.php +++ b/skin/board/neo/view.skin.php @@ -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")); }); } \ No newline at end of file