视口的宽和高

var pw = window.innerWidth,
	ph = window.innerHeight;

	if(typeof pw != "number"){

		
			pw = document.documentElement.clientWidth;
			ph = document.documentElement.clientHeight;
		

	}


	console.log(pw,ph);

 

相关文章:

  • 2022-12-23
  • 2021-12-07
  • 2022-12-23
  • 2022-01-08
  • 2021-08-30
  • 2021-05-25
  • 2021-08-15
  • 2021-11-18
猜你喜欢
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
相关资源
相似解决方案