Puppeteer自适应分辨率,能够将defaultViewport设为null, 启动的时候仍是半屏显示,点击最大化按钮,能够最大化显示。git
这样分辨率可以自适应操做系统。github
具体可看:https://github.com/GoogleChrome/puppeteer/issues/3688#issuecomment-453218745spa