css圆形头像叠加样式

在这里插入图片描述
通过图片叠加完成

<!-- body -->
<div class="avatar-list-stacked">
	<span class="avatar" style="background: url(https://blog.csdn.net/'/images/head1.png') center center;background-repeat:no-repeat;background-size: cover; background-position:0px 0px;  "></span>
	<span class="avatar" style="background: url(https://blog.csdn.net/'/images/head2.png') center center;background-repeat:no-repeat;background-size: cover; background-position:0px 0px;  "></span>
	<span class="avatar" style="background: url(https://blog.csdn.net/'/images/head3.png') center center;background-repeat:no-repeat;background-size: cover; background-position:0px 0px;  "></span>
</div>
.avatar-list-stacked .avatar {
    box-shadow: 0 0 0 1px #fff;
}
.avatar-list-stacked .avatar {
    margin-right: -1.9em !important;
}
.avatar {
    width: 5rem;
    height: 5rem;
    line-height: 20rem;
    display: inline-block;
    background: #2ddcd3 no-repeat center/cover;
    position: relative;
    text-align: center;
    color: #fff;
    font-weight: 600;
    vertical-align: bottom;
    font-size: .875rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
	border-radius: 50%;
}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值