使用:before
设置content:''
嗨,我用html列出了清单:
<ul id="queNans">
<li class="que">put letter 'क' instead bullets</li>
<li class="ans">put arrow like this '→' instead of bullets</li>
<li>how to do that?</li>
</ul>
所以这是html中带有项目符号的列表。我想删除第一个列表的项目符号,并在其中将unicode为'0915'的字母'क'放到第二个列表中,我想通过在css中调用它来保留这样的箭头,例如unicode为'2192'的箭头'→',
您好,我在html中列出了一个列表:
使用:before
设置content:''
ul{ padding:0px; } ul li{ position:relative; list-style:none; padding-left:25px; line-height:100%; vertical-align:middle; } ul li.que:before{ position:absolute; content:'\0915'; left:0px; top:2px; font-size:14px; } ul li.ans:before{ position:absolute; content:'\2192'; left:0px; top:2px; font-size:14px; }
<ul id="queNans"> <li class="que">put letter 'क' instead bullets</li> <li class="ans">put arrow like this '→' instead of bullets</li> <li>how to do that?</li> </ul>
使用:before
设置content:''