how to hide
  • bullets in navigation menu and footer links BUT show them for listing items
  • 前端 未结 7 1868
    后悔当初
    后悔当初 2020-12-09 07:23

    I have a navigation menu, footer, and a slideshow which use listed style to list links and images. I have the css list-style:none; set to hide the bullets next

    相关标签:
    7条回答
    • 2020-12-09 08:28

      You can also define a class for the bullets you want to show, so in the CSS:

      ul {list-style:none; list-style-type:none; list-style-image:none;}
      

      And in the HTML you just define which lists to show:

      <ul style="list-style:disc;">
      

      Or you alternatively define a CSS class:

      .show-list {list-style:disc;}
      

      Then apply it to the list you want to show:

      <ul class="show-list">
      

      All other lists won't show the bullets...

      0 讨论(0)
    提交回复
    热议问题