<div :style="{background: 'url('+ avatarLink +')',backgroundSize:'40px 40px' }" style="border-radius: 50%;width: 40px;height: 40px;background-repeat: no-repeat"></div>
avatarLink 就是图片链接
<div :style="{background: 'url('+ avatarLink +')',backgroundSize:'40px 40px' }" style="border-radius: 50%;width: 40px;height: 40px;background-repeat: no-repeat"></div>
avatarLink 就是图片链接
转载于:https://my.oschina.net/carbenson/blog/2994237