Puppeteer最大化顯示,分辨率自適應

Puppeteer自適應分辨率,能夠將defaultViewport設爲null, 啓動的時候仍是半屏顯示,點擊最大化按鈕,能夠最大化顯示。git

這樣分辨率可以自適應操做系統。github

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

相關文章
相關標籤/搜索