在每个列表项后插入图像 [英] Insert image after each list item
本文介绍了在每个列表项后插入图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在每个列表元素之后插入小图片的最佳方法是什么?我尝试了一个伪类,但有些不正确...
What would be the best way to insert a small image after each list element? I tried it with a pseudo class but something is not right...
ul li a:after {display: block;
width: 3px;
height: 5px;
background: url ('../images/small_triangle.png') transparent no-repeat;}
$ b b
感谢您的帮助!
Thanks for any help!
推荐答案
更简单的方法是:
ul li:after {
content: url('../images/small_triangle.png');
}
这篇关于在每个列表项后插入图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文