mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-29 02:51:20 -08:00
fix: update default value of FULLSCREEN_WEB_IN_BODY to true in documentation
This commit is contained in:
1 parent
12d6781bf5
commit
630b6b9d93
3 files changed
+7
-4
No files matched your search
@@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
- Change `Artplayer.FULLSCREEN_WEB_IN_BODY` defaults to `true`
|
||||||
|
- Fix [#1014](https://github.com/zhw2590582/ArtPlayer/issues/1014)
|
||||||
|
|
||||||
## [5.3.0] - 2025-09-06
|
## [5.3.0] - 2025-09-06
|
||||||
|
|
||||||
- Rename `.esm.js` to `.mjs`
|
- Rename `.esm.js` to `.mjs`
|
||||||
|
|||||||
@@ -503,12 +503,12 @@ art.setting.show = true;
|
|||||||
|
|
||||||
## FULLSCREEN_WEB_IN_BODY
|
## FULLSCREEN_WEB_IN_BODY
|
||||||
|
|
||||||
网页全屏时,是否把播放器挂在在 `body` 元素下,默认为 `false`
|
网页全屏时,是否把播放器挂在在 `body` 元素下,默认为 `true`
|
||||||
|
|
||||||
<div className="run-code">▶ Run Code</div>
|
<div className="run-code">▶ Run Code</div>
|
||||||
|
|
||||||
```js
|
```js
|
||||||
Artplayer.FULLSCREEN_WEB_IN_BODY = true;
|
Artplayer.FULLSCREEN_WEB_IN_BODY = false;
|
||||||
|
|
||||||
var art = new Artplayer({
|
var art = new Artplayer({
|
||||||
container: '.artplayer-app',
|
container: '.artplayer-app',
|
||||||
|
|||||||
@@ -513,12 +513,12 @@ art.setting.show = true;
|
|||||||
|
|
||||||
## FULLSCREEN_WEB_IN_BODY
|
## 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>
|
<div className="run-code">▶ Run Code</div>
|
||||||
|
|
||||||
```js
|
```js
|
||||||
Artplayer.FULLSCREEN_WEB_IN_BODY = true;
|
Artplayer.FULLSCREEN_WEB_IN_BODY = false;
|
||||||
|
|
||||||
var art = new Artplayer({
|
var art = new Artplayer({
|
||||||
container: '.artplayer-app',
|
container: '.artplayer-app',
|
||||||
|
|||||||
Reference in new issue
Block a user