是否可以background-image为SVG <path>元素设置?
background-image
<path>
例如,如果我设置元素class="wall",CSS样式.wall {fill: red;}可以工作,但.wall{background-image: url(wall.jpg)}不会.wall {background-color: red;}.
class="wall"
.wall {fill: red;}
.wall{background-image: url(wall.jpg)}
.wall {background-color: red;}
html css svg image background-image
background-image ×1
css ×1
html ×1
image ×1
svg ×1