From 348946c363addcd679d8633daad78e1399e31d03 Mon Sep 17 00:00:00 2001 From: yanxd Date: Wed, 27 Nov 2013 10:34:41 +0800 Subject: [PATCH] fix img overflow bug. --- app/views/memos/show.html.erb | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/app/views/memos/show.html.erb b/app/views/memos/show.html.erb index e239bd79d..28bfdf5ff 100644 --- a/app/views/memos/show.html.erb +++ b/app/views/memos/show.html.erb @@ -58,18 +58,13 @@ } .comments img { overflow:hidden; - width: 100%; + /*width: 100%;*/ max-width: 500px; - height: auto; + height: auto !important; width:expression(this.width > 500 ? "500px" : this.width+"px"); } -