Commit f688b2be authored by agping's avatar agping

修改

parent 5c647c76
...@@ -38,7 +38,8 @@ ...@@ -38,7 +38,8 @@
<!--添加隐藏按钮--> <!--添加隐藏按钮-->
<div id="hide_menu"> <div id="hide_menu">
<span class="width-136-hide"> <span class="width-136-hide">
隐藏<img src="/resource/image/icon_down@2x.png" class="text-icon-hide"/> 隐藏
<!--<img src="/resource/image/icon_down@2x.png" class="text-icon-hide"/>-->
</span> </span>
</div> </div>
......
...@@ -116,23 +116,22 @@ a:hover{ ...@@ -116,23 +116,22 @@ a:hover{
/*隐藏按钮 样式*/ /*隐藏按钮 样式*/
#hide_menu{ #hide_menu{
overflow: hidden; overflow: hidden;
margin-top: -10px; margin-top: -18px;
} }
.glyphicon-chevron-down{ .glyphicon-chevron-down{
float: right; float: right;
} }
.width-136-hide{ .width-136-hide{
/*width: 136px;*/
width: 12%; width: 12%;
height: 36px; height: 36px;
color: #fff; color: #777;
line-height: 36px; line-height: 36px;
text-align: center; text-align: center;
float: left; float: left;
background-color: rgba(0,0,0,.2);
font-size:16px; font-size:16px;
cursor:pointer; cursor:pointer;
font-weight: 500;
} }
/*菜单图标的样式*/ /*菜单图标的样式*/
......
...@@ -105,11 +105,13 @@ define(['doT', 'jquery', 'text!temp/menu_template_tpl.html', 'layer'], function ...@@ -105,11 +105,13 @@ define(['doT', 'jquery', 'text!temp/menu_template_tpl.html', 'layer'], function
var _this = $(this); var _this = $(this);
if($.trim(_this.html()).indexOf("隐藏")!=-1){ if($.trim(_this.html()).indexOf("隐藏")!=-1){
$('#sidebar-wrapper').hide(); $('#sidebar-wrapper').hide();
_this.html('显示<img src="/resource/image/icon_down_hide@2x.png" class="text-icon-hide"/>'); _this.html('显示');
// _this.html('显示<img src="/resource/image/icon_down_hide@2x.png" class="text-icon-hide"/>');
$("#page-content-wrapper").css("width","100%");//内容显示大小 $("#page-content-wrapper").css("width","100%");//内容显示大小
}else{ }else{
$('#sidebar-wrapper').show(); $('#sidebar-wrapper').show();
_this.html('隐藏<img src="/resource/image/icon_down@2x.png" class="text-icon-hide"/>'); _this.html('隐藏');
// _this.html('隐藏<img src="/resource/image/icon_down@2x.png" class="text-icon-hide"/>');
$("#page-content-wrapper").css("width","88%");//内容显示大小 $("#page-content-wrapper").css("width","88%");//内容显示大小
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment