Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ionic Cards

ionic Cards

In recent years, cards (card) have become increasingly popular; cards provide a better tool for organizing information display.

For mobile applications, cards adapt their size to the screen.

We can flexibly control how cards are displayed, even achieving animation effects.

Cards are usually placed at the top of a page, but can also support left/right switching.



基本卡片,包含了文本信息。

Try it »

Cards (card) have a box-shadow by default; for performance reasons, similar elements like list and list-inset do not have shadows.

If you have many cards, each with many child elements, it is recommended to use an inset list.


Card Header and Footer

We can add a header and footer to a card by adding the item-divider class:



卡片头部!
基本卡片,包含了文本信息。
卡片底部!

Try it »


Card List

Use the list card class to set up a card list:





Try it »


Cards with Images

Using images in cards works better; the example is as follows:



Pretty Hate Machine

Nine Inch Nails

Start listening

Try it »

The running result is as follows:


Card Presentation

The following example uses several different options for card presentation. It starts with the list card element, uses item-avatar and item-body elements to display images and text information, and uses the item-divider class at the bottom.



Marty McFly

November 05, 1955

Runoob Tutorial -- 学的不仅是技术,更是梦想!
Runoob Tutorial -- 学的不仅是技术,更是梦想!
Runoob Tutorial -- 学的不仅是技术,更是梦想!
Runoob Tutorial -- 学的不仅是技术,更是梦想!

1 喜欢 5 评论

Try it »

The running result is as follows: