Here is the demo ,这是 Sprite :
我想在标记中使用箭头,如下所示:
<div class="tooltip">
The tooltip
<span class="arrow"></span>
</div>
设置:
background-image: url(foobar.gif);
background-position: 0 -40px;
background-repeat: none;
似乎不起作用(如预期)。任何解决方法?
最佳答案
你的意思是:
background-repeat:no-repeat
?
关于css - 将 background-position 与 background-repeat 一起用于 CSS Sprite ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5777274/