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

(Created page with "跟随窗口大小的高度: $(function(){ var winHeight=$(window).height(); // alert(winHeight); $(".SSTi-SZGD").css("height",winHeight); $(window).resize(function(){...")
 
Line 2: Line 2:
 
$(function(){
 
$(function(){
 
var winHeight=$(window).height();
 
var winHeight=$(window).height();
// alert(winHeight);
 
 
$(".SSTi-SZGD").css("height",winHeight);  
 
$(".SSTi-SZGD").css("height",winHeight);  
 
$(window).resize(function(){
 
$(window).resize(function(){

Revision as of 03:28, 25 July 2017

/*跟随窗口大小的高度*/ $(function(){ var winHeight=$(window).height(); $(".SSTi-SZGD").css("height",winHeight); $(window).resize(function(){ winHeight = $(window).height(); $(".SSTi-SZGD").css("height",winHeight); }); });