获取列表类并通过Unicode将其更改为任何语言

问题描述 投票:0回答:1

嗨,我用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中列出了一个列表:

  • 把字母'rated'代替子弹头
  • 像这样用箭头'→'代替子弹头
] >

使用: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>
html css html-lists
1个回答
0
投票

使用:before设置content:''

© www.soinside.com 2019 - 2024. All rights reserved.