Puppeteer最大化显示,分辨率自适应

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

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

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

猜你喜欢

转载自www.cnblogs.com/mengff/p/11596083.html