一個導航條布局的簡單寫法_CSS/HTML

來源:互聯網
上載者:User
我希望能用最簡單的代碼去解決問題!
CSS部分
複製代碼 代碼如下:


內容部分:
複製代碼 代碼如下:


  • 標題一

  • 標題一

  • 標題一

  • 標題一

  • 標題一

  • 標題一




<style> #menu ul { list-style:none; margin: 0px; padding: 0px; } #menu li { float:left; font-size:12px; background: #999; padding:2px 20px;border:1px solid #000; margin-left: -1px; } --> </style> </head> <body> <ul><li>標題一</li> <li>標題一</li> <li>標題一</li> <li>標題一</li> <li>標題一</li> <li>標題一</li> </ul> </body> </html>
[Ctrl+A 全選 注:如需引入外部Js需重新整理才能執行]
  • 相關文章

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.