diff --git a/app/views/messages/quote.js.erb b/app/views/messages/quote.js.erb index 157e20764..e7ee0bca0 100644 --- a/app/views/messages/quote.js.erb +++ b/app/views/messages/quote.js.erb @@ -5,3 +5,4 @@ $('#quote_quote').html("<%= raw escape_javascript(@temp.content.html_safe) %>"); showAndScrollTo("reply", "message_content"); $('#message_content').scrollTop = $('#message_content').scrollHeight - $('#message_content').clientHeight; +$("img").removeAttr("align"); diff --git a/public/javascripts/course.js b/public/javascripts/course.js index fb4998428..46cc8b431 100644 --- a/public/javascripts/course.js +++ b/public/javascripts/course.js @@ -8,6 +8,10 @@ function course_setting(id) $('#tbc_0'+(3-id)).removeClass().addClass("undis"); } +$(function(){ + $("img").removeAttr("align"); +}); + /////////////////////////////////////////////////////////////// //添加分班 function add_group(url,course_id) { diff --git a/public/stylesheets/courses.css b/public/stylesheets/courses.css index 8442bb259..ce9f36136 100644 --- a/public/stylesheets/courses.css +++ b/public/stylesheets/courses.css @@ -437,6 +437,7 @@ a.link_file_board{ background:url(../images/pic_file.png) 0 3px no-repeat !impor /*上传图片处理*/ .upload_img img{max-width: 100%;} +blockquote img{max-width: 100%;} /* The following fixes a problem where IE7 and IE8 replace a PNG's alpha transparency with a black fill