Home >Web Front-end >CSS Tutorial >Why doesn't list-style-type:none; work?
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!