视图(aip-view)
使用 aip-view 来替换 HTML 中的 div 布局标签,提供块级元素排版,默认为 flex 布局。
如需要子元素使用行内布局,请参考aip-inline-view。
示例
<aip-view style="width: 100px; height: 100px;">
<aip-view>
<aip-text>hello</aip-text>
</aip-view>
</aip-view>
1
2
3
4
5
2
3
4
5
使用 aip-view 来替换 HTML 中的 div 布局标签,提供块级元素排版,默认为 flex 布局。
如需要子元素使用行内布局,请参考aip-inline-view。
<aip-view style="width: 100px; height: 100px;">
<aip-view>
<aip-text>hello</aip-text>
</aip-view>
</aip-view>