可以打开控制台查看html标签的宽度,发现不是当前屏幕的宽度,更改下宽度即可;用js控制下,上代码

document.getElementsByTagName('html')[0].style.width= window.innerWidth+'px';
window.onresize = function(){
    document.getElementsByTagName('html')[0].style.width= window.innerWidth+'px';
};

加入这段话即可;动态改变html宽度;

相关文章:

  • 2021-05-30
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
  • 2021-12-03
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-10
  • 2021-06-29
  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
相关资源
相似解决方案