add aspect-ratio

This commit is contained in:
Harvey Zack committed 2023-01-18 14:35:59 +08:00
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` 是必填的