mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 09:33:21 -08:00
add aspect-ratio
This commit is contained in:
1 parent
07f4b808b8
commit
5414fbfd81
3 files changed
+20
-4
No files matched your search
@@ -26,6 +26,14 @@ You may need to initialize the size of container elements, such as:
|
||||
}
|
||||
```
|
||||
|
||||
Or use `aspect-ratio`:
|
||||
|
||||
```css{2}
|
||||
.artplayer-app {
|
||||
aspect-ratio: 16/9;
|
||||
}
|
||||
```
|
||||
|
||||
:::warning Tip
|
||||
|
||||
Of all options, only `container` is required
|
||||
|
||||
@@ -26,6 +26,14 @@ var art = new Artplayer({
|
||||
}
|
||||
```
|
||||
|
||||
或者使用 `aspect-ratio`:
|
||||
|
||||
```css{2}
|
||||
.artplayer-app {
|
||||
aspect-ratio: 16/9;
|
||||
}
|
||||
```
|
||||
|
||||
:::warning 提示
|
||||
|
||||
全部选项里,只有 `container` 是必填的
|
||||
|
||||
Reference in new issue
Block a user