Skip to content
Looseleaf Uni
Search
⌘
Ctrl
K
Main Navigation
开始使用
组件
迁移进度
Appearance
Menu
Return to top
On this page
AspectRatio 宽高比
把插槽内容放进指定宽高比的容器,内容尺寸可随视口调整。
vue
<
ll-aspect-ratio
:
ratio
=
"
16
/
9
"
>预览区</
ll-aspect-ratio
>
嵌入 H5 示例
单独打开示例 ↗
Attributes
参数
说明
类型
可选值
默认值
ratio
宽除以高
number
正数
1