公共贴吧中使用新编辑器上传大图片,图片超出界面

This commit is contained in:
sw 2015-04-10 15:54:17 +08:00
parent 400d1a147d
commit 600003e48c
5 changed files with 8 additions and 5 deletions

View File

@ -16,7 +16,7 @@
</td>
</tr>
<tr>
<td style="word-break: break-all;word-wrap: break-word;">
<td style="word-break: break-all;word-wrap: break-word;" class="upload_img">
<p>
<%= textAreailizable forum.description%>
</p>

View File

@ -53,7 +53,7 @@
<div class="sidebar-forums">
<div class="forums-line">
<div class="forums-title"><%= @forum.name %></div>
<div class="forums-description"><%= @forum.description.html_safe %></div>
<div class="forums-description upload_img"><%= @forum.description.html_safe %></div>
</div>
<!--informations-->
<div class="formus-first-title" >创建人信息</div>

View File

@ -84,7 +84,7 @@
<div class="sidebar-forums">
<div class="forums-line">
<div class="forums-title"><%= @forum.name %></div>
<div class="forums-description"><%= @forum.description.html_safe %></div>
<div class="forums-description upload_img"><%= @forum.description.html_safe %></div>
</div>
<!--informations-->
<div class="formus-first-title" >创建人信息</div>

View File

@ -8,6 +8,9 @@ h3, .wiki h2 {font-size: 15px; padding-left: 5px}
h4, .wiki h3 {font-size: 13px;}
h4 {border-bottom: 1px dotted #bbb;}
/*上传图片处理*/
.upload_img img{max-width: 100%;}
/****翻页***/
ul.wlist{ float:right; border-bottom:none; height:30px; margin-top:20px; }
ul.wlist li{float: left;}

View File

@ -750,9 +750,9 @@ div.actions input[type="text"] {
.memo-content img, .comments img {
overflow: hidden;
/*width: 100%;*/
max-width: 500px;
max-width: 100%;
height: auto !important;
width: expression(this.width > 500 ? "500px" : this.width+"px");
/*width: expression(this.width > 500 ? "500px" : this.width+"px");*/
}
table.content-text-list tbody tr td.sticky, div.memo-section .sticky {