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

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

黄舟
Release: 2017-06-29 13:50:37
Original
3491 people have browsed it

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>
Copy after login

Css
Style 1

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

Style 2

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

"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;}
Copy after login

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!

Related labels:
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