Difference between revisions of "Template:China Tongji Content"

 
(4 intermediate revisions by the same user not shown)
Line 15: Line 15:
 
color: #FFF;
 
color: #FFF;
 
text-align: left;
 
text-align: left;
margin:64px 0px 0px 0px;
+
margin:68px 0px 0px 0px;
 
padding:0px;
 
padding:0px;
 
padding-left:8%;
 
padding-left:8%;
Line 45: Line 45:
 
}
 
}
 
.listOne p:hover{
 
.listOne p:hover{
border-left: 3px solid #F0F;
+
border-left: 3px solid #6D2E1A;
 
padding-left:10px;
 
padding-left:10px;
 
}
 
}
Line 58: Line 58:
 
}
 
}
 
.listTwo:hover{
 
.listTwo:hover{
border-left: 2px solid #F0F;
+
border-left: 2px solid #6D2E1A;
 
padding-left:5px;
 
padding-left:5px;
 
}
 
}
Line 236: Line 236:
 
//----------侧边栏位置指示函数-----------------//
 
//----------侧边栏位置指示函数-----------------//
 
function locationFirstShow(scrollTop,firstST,list,listDrop){
 
function locationFirstShow(scrollTop,firstST,list,listDrop){
if( (scrollTop<firstST-78) ){
+
if( (scrollTop<firstST-68) ){
 
list.css("color","#F0F");
 
list.css("color","#F0F");
 
listDrop.css("display","block");
 
listDrop.css("display","block");
Line 245: Line 245:
 
} //第一个二级标题位置指示
 
} //第一个二级标题位置指示
 
function locationShow(scrollTop,firstST,secondST,list,listDrop){
 
function locationShow(scrollTop,firstST,secondST,list,listDrop){
if( (scrollTop>=firstST-78) ){
+
if( (scrollTop>=firstST-68) ){
 
list.css("color","#F0F");
 
list.css("color","#F0F");
 
listDrop.css("display","block");
 
listDrop.css("display","block");
if(scrollTop>=secondST-78){
+
if(scrollTop>=secondST-68){
 
list.css("color","#000");
 
list.css("color","#000");
 
listDrop.css("display","none");
 
listDrop.css("display","none");
Line 257: Line 257:
 
} //中间的二级标题位置指示
 
} //中间的二级标题位置指示
 
function locationLastShow(scrollTop,lastST,list,listDrop){
 
function locationLastShow(scrollTop,lastST,list,listDrop){
if( (scrollTop>=lastST-78) ){
+
if( (scrollTop>=lastST-68) ){
 
list.css("color","#F0F");
 
list.css("color","#F0F");
 
listDrop.css("display","block");
 
listDrop.css("display","block");

Latest revision as of 20:39, 16 September 2015

close label