Difference between revisions of "Team:SSTi-SZGD/js/Notebook"

(Created page with "自定义Project效果: $(function(){ $(".header .nav .mainnav").eq(2).hover(function(){ $(".header .nav .Team span").css("color","#FAEE0D"); },function(){ $(".head...")
 
Line 3: Line 3:
 
 
 
$(".header .nav .mainnav").eq(2).hover(function(){
 
$(".header .nav .mainnav").eq(2).hover(function(){
$(".header .nav .Team span").css("color","#FAEE0D");
+
$(".header .nav .Project span").css("color","#FAEE0D");
 
},function(){
 
},function(){
$(".header .nav .Team span").css("color","#FAEE0D");
+
$(".header .nav .Project span").css("color","#FAEE0D");
 
});
 
});
 
 

Revision as of 08:26, 2 August 2017

/*自定义Project效果*/ $(function(){

$(".header .nav .mainnav").eq(2).hover(function(){ $(".header .nav .Project span").css("color","#FAEE0D"); },function(){ $(".header .nav .Project span").css("color","#FAEE0D"); });

});

/*跟随窗口大小的高度*/ $(function(){

var winHeight=$(window).height();

console.log(winHeight);

if(winHeight>=465){ $(".pdf").css("height",winHeight); } else{ winHeight=465; $(".pdf").css("height",winHeight); }

$(window).resize(function(){

winHeight=$(window).height();

console.log(winHeight);

if(winHeight>=465){ $(".pdf").css("height",winHeight); } else{ winHeight=465; $(".pdf").css("height",winHeight); }

});

});