Skip to main content
Version: 24.38.0

FrameAddStyleTagOptions 接口

🌐 FrameAddStyleTagOptions interface

语法

🌐 Signature

export interface FrameAddStyleTagOptions

属性

🌐 Properties

属性

🌐 Property

修饰符

🌐 Modifiers

类型

🌐 Type

描述

🌐 Description

默认

🌐 Default

content

optional

string

要注入到框架中的原始 CSS 内容。

🌐 Raw CSS content to be injected into the frame.

path

optional

string

要注入到框架中的 CSS 文件的路径。

🌐 The path to a CSS file to be injected into the frame.

附注

如果 path 是相对路径,则它是相对于当前工作目录(Node.js 中的 process.cwd())解析的。

🌐 If path is a relative path, it is resolved relative to the current working directory (process.cwd() in Node.js).

url

optional

string

要添加的 CSS 文件的 URL。

🌐 the URL of the CSS file to be added.