我试图给背景图像而不是背景颜色,任何人都可以帮忙。 这是我的代码,
.next {
width: 40px;
height: 45px;
border-radius: 100%;
border: 1px solid #000;
background-image: url(http://placehold.it/10x10);
background-color: #fff;
}
<div class="next"></div>
最佳答案
这就是你想要的,试试这个
.next {
width: 40px;
height: 45px;
border-radius: 100%;
background: #fee8fe url(http://placehold.it/10x10) no-repeat center;
}
<div class="next"></div>
关于html - 如何在背景颜色上提供背景图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44111772/