Home > Web Front-end > HTML Tutorial > 如何清除列表前的数字或者圆圈_html/css_WEB-ITnose

如何清除列表前的数字或者圆圈_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:31:26
Original
2218 people have browsed it

如何清除列表前的数字或者圆圈:
建议:尽可能的手写代码,可以有效的提高学习效率和深度。
在默认情况下有序列表ol和无序列表ul都会在列表项的前面带有自己特有的序号或者符号,但是这些序号或者符号并不是我们想要的或者说不美观,一般都需要人为的清除掉它们。方法就是将它们的list-style的属性值设置为none即可。实例如下: 

<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="author" content="http://www.softwhy.com/" /><title>蚂蚁部落</title><style type="text/css">ul, ol{list-style:none}</style></head><body><ol>  <li>蚂蚁部落</li>  <li>蚂蚁部落</li></ol><ul>  <li>蚂蚁部落</li>  <li>蚂蚁部落</li></ul></body></html>
Copy after login

原文地址是 :http://www.softwhy.com/forum.php?mod=viewthread&tid=4735

更多内容可以参阅:http://www.softwhy.com/divcss/

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template