头像
用途
Add your avatar HTML
Add class="avatar" to a small inline container. Add data-size="sm" or data-size="lg" when needed. Put the image first and a fallback <span> after it. Add .avatar-badge for a status badge or badge icon.
HTML 结构
<div class="avatar-group">OptionalOptional parent that groups avatars with overlap.
<span class="avatar">Avatar root. Use it standalone or as a direct child of
.avatar-group. Adddata-size="sm"ordata-size="lg"for alternate sizes.<img>Optional- The avatar image. Provide meaningful
alttext. <span>- Fallback initials or icon.
<span class="avatar-badge">Optional- Status badge positioned at the block-end inline-end corner. It can be empty or contain an icon.
<span data-count>Optional- Count or icon indicator displayed at the end of the group.
示例
基本
徽章
带有图标的徽章
头像组
头像组数
带有图标的头像组
尺寸
CNCNCN