Merge pull request #8 from wangdabaoqq/avatar
🐛(component): 修复avatar组件样式错乱
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
color: #fff;
|
||||
white-space: nowrap;
|
||||
text-align: center;
|
||||
background: #ccc;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
line-height: 32px;
|
||||
@@ -44,4 +43,14 @@
|
||||
.layui-avatar-list .layui-avatar {
|
||||
margin-left: -10px;
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
.layui-avatar {
|
||||
& > img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: #ccc;
|
||||
display: block;
|
||||
object-fit: cover;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user