我想在同一页面上多次放置相同的图像。我为此图像创建了一个 div,但我不确定每次放置它的最佳方法是什么。我是初学者,我希望这是相对简单的。有没有更好的方法来解决这个问题?我在 html 部分中确实有所有的“箭头”,但它看起来很笨重。谢谢你的帮助!!!顺便说一句,此示例仅显示 1 个实例。
div.arrow
{
width:17px;
height:16px;
background-image: url("images/resumearrow");
}
<div class="arrow">
<img style= "position:absolute; top:13px; left:-19px; width:17px; height:16px;"></div>