侧栏点击后只留显示按钮,点击显示按钮返回之前状态
html
收缩2
收缩
显示
| 经贸北校区 |
|
| 汇华学院、经济管理学院 |
|
| 铁道大学 |
|
| 四方学院(南校区) |
|
* {
margin: 0;
padding: 0;
/*font-family: "Microsoft YaHei";*/
}
body{position: relative}
ul{list-style: none}
#show-result {
overflow-x: hidden;
overflow-y: auto;
width: 440px;
position: absolute;
right: 20px;
top: 150px;
height: 490px;
/*background-color: #7bbedf;*/
}
#show-result table {
position: absolute;
overflow-y: auto;
display: block;
width: 390px;
height: 100%;
/* position: relative; */
background-color: yellowgreen;
right: -20px;
}
table tr {
position: relative;
}
table tr td {
display: block;
/* width: 100%; */
}
table tr td:first-child {
border-top: 1px solid #DEDEDE;
color: #4890D7;
/* background-color: #00D685; */
/* height: 30%; */
font-size: 20px;
/* color: white; */
line-height: 40px;
padding-left: 20px;
}
table tr td:last-child {
/* font-size: 18px; */
padding-left: 20px;
/* height: 70%; */
}
#btn-show {
position: absolute;
width: 70px;
height: 70px;
background-color: darkgoldenrod;
line-height: 70px;
text-align: center;
color: white;
cursor: pointer;
left: 0;
}
.hideArea{
display: none;
}
#btn-hide {
width: 70px;
height: 70px;
background-color: red;
position: absolute;
cursor: pointer;
left: -70px;
line-height: 70px;
text-align: center;
}jQuery
装修公司源码,采用DIV+CSS布局,首页顶部采用了超大宽屏banner焦点图切换,带伸缩功能的导航条。首页信息展示量大,有利于SEO优化,首页版块包括,导航,焦点图切换,案例,行业动态,装修经验,装修知识。源码支持伪静态,后台开启即可,服务器必须支持rewrite功能,否则无法实现伪静态功能。信息支持二级分类。后台支持信息批量修改,删除,可以支持,视频,图片,附件上传。
$(document).ready(function () {
var showResult = $("#show-result");
$("#btn-show").click(function () {
$("#table-area").animate({right: '-390px'},1000);
$("#btn-show").animate({"left": "380px"},1000);
$("#btn-hide").delay(500).animate({left: '0'});
showResult.animate({width: '90px',height:'70px'},1000);
showResult.addClass('overHide');
});
$("#btn-hide").click(function () {
$("#table-area").animate({right: '-20px'},1000);
$("#btn-show").animate({"left": "0px"},1000);
$("#btn-hide").animate({left: '-70px'});
showResult.animate({width: '440px',height:'490px'},1000);
showResult.removeClass('overHide');
});
})









