Html 如何删除ol中的数字?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/40670124/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 14:02:16  来源:igfitidea点击:

How do I remove the numbers in ol?

htmlcss

提问by Aakash Patel

Please excuse me for the lack of jargon!

请原谅我缺乏行话!

I'm trying to get a portfolio site together and I need help in using the flexslider. I tried using it but there is something wrong in my css that is preventing my page from rendering properly.

我正在尝试建立一个投资组合网站,我在使用 flexslider 时需要帮助。我尝试使用它,但我的 css 中存在一些错误,导致我的页面无法正确呈现。

enter image description here

在此处输入图片说明

回答by Razia sultana

Try it:-

尝试一下:-

ol li{
  list-style-type: none;
  color:blue;
}
<ol>
  <li>1.1</li>
  <li>2.2</li>
  <li>3.3</li>
  <li>4.4</li>    

</ol>
 

回答by Je.

ol li{
 list-style:none;
 }

or

或者

ol li{
list-style:none!important;
}

回答by Jyothi Babu Araja

You can achieve this using CSS

您可以使用 CSS

ol li{
  list-style-type: none;
}
<ol>
  <li>1</li>
  <li>2</li>
  <li>3</li>
</ol>