Remove bullets from <ul>?

This question already has an answer here:

  • Need an unordered list without any bullets 23 answers

  • #menu ul is trying to target a ul that is a descendant of #menu . This is incorrect, since in your case they are the same element. ul#menu would be correct.


    You are targeting a non-existing element (a <ul> that is a child of an element with id="menu" . The element you want to target is an <li> that is a child of an element with id="menu" like this:

    #menu li{
        list-style:none; //you can remove !important
    }
    

    Another option is to create a menu class no-bullet .

    <ul id="menu" class="no-bullet" ng-show="showMenu"> and use the same CSS as above, except replace #menu li with .no-bullet .

    链接地址: http://www.djcxy.com/p/29964.html

    上一篇: 在wordpress中从菜单中删除项目符号

    下一篇: 从<ul>中移除子弹?