<link rel='stylesheet' media='screen and(orientation:portrait)' href='portrait.css' />

<link rel='stylesheet' media='screen and(orientation:landscape)' href='landscape.css' />

 

<script>

window.addEventListener('orientationchange',function(obj){

  //这里编写触发屏幕转换时的函数

})

</script>

相关文章:

  • 2021-11-28
  • 2021-12-22
  • 2021-07-02
  • 2022-12-23
  • 2022-12-23
  • 2021-07-25
  • 2021-05-22
  • 2021-04-21
猜你喜欢
  • 2021-10-13
  • 2022-12-23
  • 2021-06-06
  • 2021-08-28
  • 2021-10-04
  • 2021-08-28
  • 2021-08-28
相关资源
相似解决方案