图片变大的问题

This commit is contained in:
huang 2016-05-06 20:20:48 +08:00
parent 3469d928d8
commit 967a76af67
1 changed files with 1 additions and 7 deletions

View File

@ -138,13 +138,7 @@
</div>
<div class="sn-row">
<div class="sn-banner">
<% if @org_banner_attchment.blank? %>
<img width="1200" height="210" src="/images/sn_banner.jpg" alt=""/>
<% else %>
<img src="/attachments/<%= @org_banner_attchment.id %>/<%= @org_banner_attchment.filename %>" width="1200" height="210" alt="banner image" />
<% end %>
<a href="#" class="sn-banner-add" title="点击替换图片" onclick="org_new_files_banner_upload();"></a>
<!--<img src="/images/sn_banner.jpg" width="1200" height="210" alt="banner image" />-->
<img src="/images/sn_banner.jpg" width="1200" height="210" alt="banner image" />
<!--<a href="#" class="sn-banner-add" title="点击替换图片" ></a>-->
</div>
</div>