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

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

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

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

posted @ 2019-09-27 10:15  全玉  阅读(4453)  评论(0)    收藏  举报