Commit f688b2be authored by agping's avatar agping

修改

parent 5c647c76
......@@ -38,7 +38,8 @@
<!--添加隐藏按钮-->
<div id="hide_menu">
<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>
</div>
......
......@@ -116,23 +116,22 @@ a:hover{
/*隐藏按钮 样式*/
#hide_menu{
overflow: hidden;
margin-top: -10px;
margin-top: -18px;
}
.glyphicon-chevron-down{
float: right;
}
.width-136-hide{
/*width: 136px;*/
width: 12%;
height: 36px;
color: #fff;
color: #777;
line-height: 36px;
text-align: center;
float: left;
background-color: rgba(0,0,0,.2);
font-size:16px;
cursor:pointer;
font-weight: 500;
}
/*菜单图标的样式*/
......
......@@ -105,11 +105,13 @@ define(['doT', 'jquery', 'text!temp/menu_template_tpl.html', 'layer'], function
var _this = $(this);
if($.trim(_this.html()).indexOf("隐藏")!=-1){
$('#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%");//内容显示大小
}else{
$('#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%");//内容显示大小
}
});
......
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