我想添加一个放置在每个 li 菜单项下方的图像,例如菜单分隔符。我如何在 CSS 中执行此操作。当我向 ul 添加另一个 li 标签时,我希望图像能够动态呈现。
HTML 代码:
<ul class="menu">
<li>Bookmarks</li>
<li>Something</li>
<li>BUMPER STICKERS</li>
<li>CARBONLESS FORMS</li>
<li>CD JACKETS</li>
<li>DIE CUT/CUSTOM STICKERS</li>
<li>DOOR HANGERS</li>
<li>ENVELOPES</li>
<li>FOLDERS</li>
<li>LETTERHEADS</li>
<li>RECTANGULAR STICKERS</li>
<li>ROUND STICKERS</li>
<li>STATIC CLING</li>
<li>TABLE TENTS</li>
<li>VINYL BANNERS</li>
<li>WINDOW STICKERS</li>
</ul>
CSS:
.seperator li {
background-image: url(../Images/Template%20Images/Seperator.png);
padding: 1px;
width: 200px;
height: 25px;
position: absolute;
right: 0px;
bottom: 890px;
background-repeat: no-repeat;
display: run-in;
}