view 이미지 리사이즈 때 height 초기화 추가

This commit is contained in:
chicpro
2013-10-02 11:35:52 +09:00
parent 6569f03fba
commit 5b9661be59

View File

@ -21,7 +21,8 @@
$img.each(function() {
$(this).removeAttr("width")
.removeAttr("height")
.css("width","");
.css("width","")
.css("height", "");
if($(this).data("width") == undefined)
$(this).data("width", $(this).width());