下拉菜单药丸 Bootstrap 示例


要使用下拉菜单形成药丸,你可以尝试运行以下示例

示例

在线演示

<!DOCTYPE html>
<html>
   <head>
      <title>Bootstrap Example</title>
      <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
      <script src = "/scripts/jquery.min.js"></script>
      <script src = "/bootstrap/js/bootstrap.min.js"></script>
   </head>
   <body style = "background: #F5CBA7;">
      <h2>Website</h2>
      <ul class = "nav nav-pills">
         <li class = "active"><a href = "#">Home</a></li>
         <li><a href = "#">About</a></li>
         <li class = "dropdown">
            <a class = "dropdown-toggle" data-toggle = "dropdown" href = "#">
               Products
               <span class = "caret"></span>
            </a>
            <ul class = "dropdown-menu">
               <li><a href = "#">Online Compiler</a></li>
               <li><a href = "#">Image Editor</a></li>
            </ul>
         </li>
         <li><a href = "#">Services</a></li>
         <li><a href = "#">Contact</a></li>
      </ul>
   </body>
</html>

更新于: 12-Jun-2020

129 浏览次数

开启你的职业

完成课程,获得认证

开始
广告