Home >Web Front-end >CSS Tutorial >Why doesn't list-style-type:none; work?

Why doesn't list-style-type:none; work?

黄舟
黄舟Original
2017-06-29 13:50:373506browse

I followed other people’s writing methods and wrote them directly at the front of the CSS, but it didn’t work under FireFox. Dots will not appear even if IE is not used~

<ul id="navlist">
  <li>首页</li>
  <li>简介</li>
</ul>

Css
Style 1

ul{list-style-type:none;}
#navlist li{float:left;padding:55px 13px 0 0;}

Style 2

#navlist li{float:left;padding:55px 13px 0 0;list-style-type:none;}

"Style "One" list dots will still appear under FF. "Style 2" will not appear~depressing. Why can others do it? IE8 is normal


ul#navlist{list-style-type:none;}

The above is the detailed content of Why doesn't list-style-type:none; work?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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