From fd97e6a8447e6e3c55b30a3f3bbd4b97fb91379f Mon Sep 17 00:00:00 2001 From: chicpro Date: Fri, 25 Jan 2013 17:29:10 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EB=A6=AC?= =?UTF-8?q?=EC=82=AC=EC=9D=B4=EC=A7=95=20=EC=8A=A4=ED=81=AC=EB=A6=BD?= =?UTF-8?q?=ED=8A=B8=20=EB=B0=8F=20css=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/default.css | 2 +- skin/board/neo/view.skin.php | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) 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