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