Browse Source

底部导航栏留白问题

luyanan 8 years ago
parent
commit
fc12d5b332
3 changed files with 10 additions and 9 deletions
  1. 3 3
      css/common.css
  2. 2 2
      css/workspace.css
  3. 5 4
      js/workindex.js

+ 3 - 3
css/common.css

48
.frmrbtn{ background:none; color:#303030; border:none; }
48
.frmrbtn{ background:none; color:#303030; border:none; }
49
.updownbtn{text-decoration:underline; color:#333;}
49
.updownbtn{text-decoration:underline; color:#333;}
50

50

51
html, body{}
51
body{height:auto;position: relative;min-height: 100%;}
52
input{ outline:none;}
52
input{ outline:none;}
53
/*header部分*/
53
/*header部分*/
54
#header{width:100%;height:60px; background:rgba(255,153,0,1); position:fixed; top:0; z-index:999; }
54
#header{width:100%;height:60px; background:rgba(255,153,0,1); position:fixed; top:0; z-index:999; }
84

84

85
.myWorkspace{font-size: 14px;line-height:40px; text-align: center;float: left; margin-top: 10px;color: #fff;}
85
.myWorkspace{font-size: 14px;line-height:40px; text-align: center;float: left; margin-top: 10px;color: #fff;}
86
/*主体部分*/
86
/*主体部分*/
87
#container{ min-width:1100px;min-height:90%; background:#fff;overflow: hidden;}
87
#container{ min-width:1100px;padding-bottom:100px; background:#fff;overflow: hidden;}
88
.contentBody{width:1050px;height:auto; margin:10px auto; padding:80px 0 2px 0; }
88
.contentBody{width:1050px;height:auto; margin:10px auto; padding:80px 0 2px 0; }
89
/*footer部分*/
89
/*footer部分*/
90
#footer{ min-width:1100px;background:#ff9900;clear: both;height:100px; position: relative; z-index: 100; text-align:center;}
90
#footer{ min-width:1100px;background:#ff9900;clear: both;height:100px; position: absolute;bottom:0;right: 0;left: 0; z-index: 100; text-align:center;}
91
#footer .wrapper {margin-left:80px;position: relative;padding: 15px 0; min-width:1000px;}
91
#footer .wrapper {margin-left:80px;position: relative;padding: 15px 0; min-width:1000px;}
92
#footer .footer-logo {display: block;width:80px;height:40px;background: url(../images/logo2.png) 0 0 no-repeat;background-size:100% 100%;}
92
#footer .footer-logo {display: block;width:80px;height:40px;background: url(../images/logo2.png) 0 0 no-repeat;background-size:100% 100%;}
93

93


+ 2 - 2
css/workspace.css

15
.worksubmenu.subcolor{ background:#ff9900; color:#fff;}
15
.worksubmenu.subcolor{ background:#ff9900; color:#fff;}
16
16
17
/*右侧内容*/
17
/*右侧内容*/
18
.workcon{float:right; margin-left:10px; width:87%; min-height:800px; background: #fafafa;border-radius:6px;overflow: hidden;}
18
.workcon{float:right; margin-left:10px; width:87%; background: #fafafa;border-radius:6px;overflow: hidden;}
19
.workcon .workconitem{ display:none;}
19
.workcon .workconitem{ display:none;}
20
.workcon .workconitem:first-child{display:block;}
20
.workcon .workconitem:first-child{display:block;}
21
/*////////////科研资源/////////////////*/
21
/*////////////科研资源/////////////////*/
137
137
138
/*公告*/
138
/*公告*/
139
.workconright{ width:29%;}
139
.workconright{ width:29%;}
140
.worknotice{ width:100%; height:464px;/*  border:1px solid #d6d6d6; */background:#fff; position: relative;text-align: center; margin:1px;}
140
.worknotice{ width:100%; height:478px;/*  border:1px solid #d6d6d6; */background:#fff; position: relative;text-align: center; margin:1px;}
141
141
142
/*////////////咨询/////////////////*/
142
/*////////////咨询/////////////////*/
143
.workset{padding:4px 20px; background:#fff; border:1px solid #e8e8e8; line-height:20px; cursor:pointer;}
143
.workset{padding:4px 20px; background:#fff; border:1px solid #e8e8e8; line-height:20px; cursor:pointer;}

+ 5 - 4
js/workindex.js

928
					}
928
					}
929
					else {
929
					else {
930
						$("#wbcon1").empty("");
930
						$("#wbcon1").empty("");
931
						var height=$("#repalyf").height();												
931
						var height=$("#repalyf").outerHeight(true);	
932
						$("#wbcon1").append('<span id="wbcen">暂无最新咨询消息</span>').css("height",height);
932
						$("#wbcon1").append('<span id="wbcen">暂无最新咨询消息</span>').css("height",height);
933
						var oHeight=($("#wbcon1").height()-$("#wbcen").height())/2;
933
						var oHeight=($("#wbcon1").height()-$("#wbcen").height())/2;
934
						$("#wbcen").css({"color":"#999","display":"block","margin-top":oHeight,"text-align":"center"});						
934
						$("#wbcen").css({"color":"#999","display":"block","margin-top":oHeight,"text-align":"center"});						
987
							$("#proreplayImage").attr("src","images/default-photo.jpg");
987
							$("#proreplayImage").attr("src","images/default-photo.jpg");
988
						}
988
						}
989
					}
989
					}
990
					else {		$("#wbcon2").empty("")
991
							var height=$("#wbcon1").height();							
990
					else {	$("#wbcon2").empty("")
991
							var height=$("#wbcon1").outerHeight(true);							
992
							$("#wbcon2").append('<span id="wbcent">暂无最新回复消息</span>').css("height",height);
992
							$("#wbcon2").append('<span id="wbcent">暂无最新回复消息</span>').css("height",height);
993
							var oHeight=($("#wbcon2").height()+40-$("#wbcent").height())/2;
993
							var oHeight=($("#wbcon2").height()+16-$("#wbcent").height())/2;
994
							$("#wbcent").css({"color":"#999","display":"block","margin-top":oHeight,"text-align":"center"});
994
							$("#wbcent").css({"color":"#999","display":"block","margin-top":oHeight,"text-align":"center"});
995
					
995
					}
996
					}
996
					
997
					
997
				}
998
				}