oracle ion tool,Ionic4 导航条组件 ion-toolbar - Ionic 帮助文档

Ionic4项目中我们可以使用Ionic4导航条组件ion-toolbar对项目进行布局。

Toolbars are positioned above or below content. When a toolbar is placed in an it will appear fixed at the top of the content, and when it is in an it will appear fixed at the bottom. Fullscreen content will scroll behind a toolbar in a header or footer. When placed within an , toolbars will scroll with the content.

Buttons

Buttons placed in a toolbar should be placed inside of the element. The element can be positioned inside of the toolbar using a named slot. The below chart has a description of each slot.

Slot

Description

secondary

Positions element to the left of the content in ios mode, and directly to the right in md mode.

primary

Positions element to the right of the content in ios mode, and to the far right in md mode.

start

Positions to the left of the content in LTR, and to the right in RTL.

end

Positions to the right of the content in LTR, and to the left in RTL.

Borders

In md mode, the will receive a box-shadow on the bottom, and the will receive a box-shadow on the top. In ios mode, the will receive a border on the bottom, and the will receive a border on the top. Both the md box-shadow and the ios border can be removed by adding the no-border attribute to the element.

ion-toolbar 用法(Usage)

angularjavascriptreactvue

Title Only

Back Button

Default Buttons

Contact

Solid Buttons

Help

Star

Outline Buttons

Edit

Account

Edit

Text Only Buttons

Left side menu toggle

Right side menu toggle

All

Favorites

Secondary Toolbar

Dark Toolbar

Title Only

Back Button

Default Buttons

Contact

Solid Buttons

Help

Star

Outline Buttons

Edit

Account

Edit

Text Only Buttons

Left side menu toggle

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值