Commit a6b574dc authored by agping's avatar agping

后台 菜单 优化

parent 6f05c056
...@@ -116,22 +116,23 @@ a:hover{ ...@@ -116,22 +116,23 @@ a:hover{
/*隐藏按钮 样式*/ /*隐藏按钮 样式*/
#hide_menu{ #hide_menu{
overflow: hidden; overflow: hidden;
margin-top: -18px; margin-top: -10px;
} }
.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: #777; color: #fff;
line-height: 36px; line-height: 36px;
text-align: center; text-align: center;
float: left; float: left;
font-size:16px; background-color: rgba(0,0,0,.2);
font-size:15px;
cursor:pointer; cursor:pointer;
font-weight: 500;
} }
/*菜单图标的样式*/ /*菜单图标的样式*/
......
...@@ -105,13 +105,11 @@ define(['doT', 'jquery', 'text!temp/menu_template_tpl.html', 'layer'], function ...@@ -105,13 +105,11 @@ 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('显示'); _this.html('显示<img src="/resource/image/icon_down_hide@2x.png" class="text-icon-hide"/>');
// _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('隐藏'); _this.html('隐藏<img src="/resource/image/icon_down@2x.png" class="text-icon-hide"/>');
// _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