类似的东西
HTML
<button class="img">This button has an image</button>
<button class="img">This button has the same image</button>
CSS
.img {
url: '/testimage.png'
}
使用背景图像属性。
.img {
background-image: url("testimage.png");
}