> For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt.

# Function: applyLynxXmlStylePreset()

> **applyLynxXmlStylePreset**(`source`: `string`, `stylePreset?`: `"default"`): `string`

在不修改脚本的情况下，向直接使用 Element PAPI 的文档注入预设 CSS。

## Parameters

| Parameter     | Type        | Default value |
| ------------- | ----------- | ------------- |
| `source`      | `string`    | `undefined`   |
| `stylePreset` | `"default"` | `'default'`   |

## Returns

`string`
