Puppeteer自适应分辨率,可以将defaultViewport设为null, 启动的时候还是半屏显示,点击最大化按钮,可以最大化显示。

这样分辨率能够自适应操作系统。

具体可看:https://github.com/GoogleChrome/puppeteer/issues/3688#issuecomment-453218745

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-04
  • 2021-09-19
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-11
  • 2021-04-07
  • 2021-05-24
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
相关资源
相似解决方案