Skip to main content

窗口定制

🌐 Window Customization

BrowserWindow 模块是你的 Electron 应用的基础,它提供了许多 API,让你可以自定义应用窗口的外观和行为。本节介绍了如何在 macOS、Windows 和 Linux 上实现各种窗口自定义的使用场景。

🌐 The BrowserWindow module is the foundation of your Electron application, and it exposes many APIs that let you customize the look and behavior of your app’s windows. This section covers how to implement various use cases for window customization on macOS, Windows, and Linux.

note

BrowserWindowBaseWindow 模块的一个子类。这两个模块都允许你在 Electron 中创建和管理应用窗口,主要区别在于 BrowserWindow 支持单个全尺寸的网页视图,而 BaseWindow 支持组合多个网页视图。BaseWindow 可以在本节文档的示例中与 BrowserWindow 互换使用。