返回介绍

Ionic4 栅格系统组件 ion-row

发布于 2019-11-22 18:04:16 字数 2901 浏览 1200 评论 0 收藏 0

Ionic4 项目中我们可以使用 Ionic4 栅格系统组件 ion-row 对项目进行布局。

ion-row 官方文档地址:https://ionicframework.com/docs/api/row

Rows are horizontal components of the grid system and contain varying numbers of columns . They ensure the columns are positioned properly.

See Grid Layout for more information.

Row attributes

By default, columns will stretch to fill the entire height of the row and wrap when necessary. There are several attributes that can be added to a row to customize this behavior.

PropertyDescription
nowrapAdds flex-wrap: nowrap . Forces the columns to a single row.
wrap-reverseAdds flex-wrap: wrap-reverse . The columns will wrap in reverse.
align-items-startAdds align-items: flex-start . All columns will be vertically aligned at the top, unless they specify their own alignment.
align-items-centerAdds align-items: center . All columns will be vertically aligned in the center, unless they specify their own alignment.
align-items-endAdds align-items: flex-end . All columns will be vertically aligned at the bottom, unless they specify their own alignment.
align-items-stretchAdds align-items: stretch . All columns will be stretched to take up the entire height of the row, unless they specify their own alignment.
align-items-baselineAdds align-items: baseline . All columns will be vertically aligned at their baselines, unless they specify their own alignment.
justify-content-startAdds justify-content: start . All columns will be horizontally aligned at the start.
justify-content-centerAdds justify-content: center . All columns will be horizontally aligned at the center.
justify-content-endAdds justify-content: end . All columns will be horizontally aligned at the end.
justify-content-aroundAdds justify-content: space-around . All columns will be horizontally aligned with equal space around them.
justify-content-betweenAdds justify-content: space-between . All columns will be horizontally aligned with a half-size space on either end.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文