diff --git a/app/views/layouts/base_homework.html.erb b/app/views/layouts/base_homework.html.erb index 1e6b9bca2..96671cc6d 100644 --- a/app/views/layouts/base_homework.html.erb +++ b/app/views/layouts/base_homework.html.erb @@ -37,6 +37,8 @@ .span_wping a:hover{ background-color:#03a1b3;} .span_wping_background{background: #CCC !important;} .font_lighter_sidebar img{max-width: 100%} + /*上传图片处理*/ + .upload_img img{max-width: 100%;} @@ -122,7 +124,7 @@
- +
<% if (User.current.admin?||User.current.allowed_to?(:as_teacher,course)) %> - diff --git a/public/stylesheets/css.css b/public/stylesheets/css.css index 6d2113d4b..2b820381e 100644 --- a/public/stylesheets/css.css +++ b/public/stylesheets/css.css @@ -184,6 +184,8 @@ a.member_search { padding: 4px 6px; text-decoration: none; } +/*上传图片处理*/ +.upload_img img{max-width: 100%;}
@@ -151,8 +153,8 @@
- <%= @bid.description.html_safe %> + +
<%= @bid.description.html_safe %>