fix: update default value of FULLSCREEN_WEB_IN_BODY to true in documentation

This commit is contained in:
Harvey Zack committed 2025-09-11 10:39:05 +08:00
1 parent 12d6781bf5
commit 630b6b9d93
3 files changed
+7 -4

No files matched your search

@@ -503,12 +503,12 @@ art.setting.show = true;
## FULLSCREEN_WEB_IN_BODY
网页全屏时,是否把播放器挂在在 `body` 元素下,默认为 `false`
网页全屏时,是否把播放器挂在在 `body` 元素下,默认为 `true`
<div className="run-code">▶ Run Code</div>
```js
Artplayer.FULLSCREEN_WEB_IN_BODY = true;
Artplayer.FULLSCREEN_WEB_IN_BODY = false;
var art = new Artplayer({
container: '.artplayer-app',
@@ -513,12 +513,12 @@ art.setting.show = true;
## FULLSCREEN_WEB_IN_BODY
When in web fullscreen, whether to mount the player under the `body` element, defaults to `false`
When in web fullscreen, whether to mount the player under the `body` element, defaults to `true`
<div className="run-code">▶ Run Code</div>
```js
Artplayer.FULLSCREEN_WEB_IN_BODY = true;
Artplayer.FULLSCREEN_WEB_IN_BODY = false;
var art = new Artplayer({
container: '.artplayer-app',