修正了图片上传bug
This commit is contained in:
parent
163fe97e6f
commit
c62f1b6618
|
@ -1,3 +1,4 @@
|
|||
<!-->added by young<-->
|
||||
<style type="text/css">
|
||||
a, a:hover {text-decoration:none;}
|
||||
.btn_addPic
|
||||
|
@ -31,13 +32,12 @@
|
|||
.file_selector
|
||||
{
|
||||
position: relative;
|
||||
width:0px;
|
||||
padding-left:0;
|
||||
padding-left:13px;
|
||||
opacity: 0;
|
||||
filter: alpha(opacity:0);
|
||||
}
|
||||
</style>
|
||||
|
||||
<!-- end -->
|
||||
<span id="avatar_fields">
|
||||
<%= image_tag(url_to_avatar(source), id: "avatar_image", size: AvatarHelper::AVATAR_SIZE)%>
|
||||
<span id="avatar_file">
|
||||
|
@ -47,10 +47,11 @@
|
|||
<a href="javascript:void(0);" class="btn_addPic" style="text-decoration:none;">
|
||||
<span>上传图片</span>
|
||||
</a>
|
||||
<span class="add_avatar">
|
||||
<span class="add_avatar" style="width:20px;">
|
||||
<%= file_field_tag 'avatar[image]',
|
||||
:id => nil,
|
||||
:class => 'file_selector',
|
||||
:style => 'width:70px;',#added by young
|
||||
:size => "1",
|
||||
:multiple => false,
|
||||
:onchange => 'addInputAvatar(this);',
|
||||
|
|
|
@ -443,11 +443,11 @@ ul.projects li.root
|
|||
width:240px;/*by young*/
|
||||
height: auto;
|
||||
background:#edecec; /*主题框架背景yanse*/
|
||||
border-right:1px solid #bbb;
|
||||
border-right:1px solid #C6E9F1;
|
||||
overflow:auto;
|
||||
/*by young*/
|
||||
-moz-box-shadow:#bbb 1px 1px 2px;
|
||||
-webkit-box-shadow:2px 2px 0px -2px #bbb;
|
||||
-moz-box-shadow:#C6E9F1 1px 1px 2px;
|
||||
-webkit-box-shadow:2px 2px 0px -2px #C6E9F1;
|
||||
}
|
||||
|
||||
#sidebar a,#sidebar a.selected
|
||||
|
|
Loading…
Reference in New Issue