跳转到主内容

自定义窗口

BrowserWindow模块是您的Electron应用程序的基础,并且它暴露了需要可以改变您浏览器窗口的外观和行为的API。 本节介绍如何在macOS、 Windows和Linux上实现窗口定制的各种使用案例。

info

BrowserWindow is a subclass of the BaseWindow module. Both modules allow you to create and manage application windows in Electron, with the main difference being that BrowserWindow supports a single, full size web view while BaseWindow supports composing many web views. BaseWindow can be used interchangeably with BrowserWindow in the examples of the documents in this section.