bootstrap静态模板-头部导航条
<!DOCTYPE html> <html lang="en" backgound=""> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Document</title> <link href="../public/plugins/bootstrap-5.1.3/css/bootstrap.min.css" rel="stylesheet" /> <link href="../public/plugins/bootstrap-icons-1.9.1/bootstrap-icons.css" rel="stylesheet" /> <link rel="stylesheet" href="../public/plugins/fontawesome-free/css/all.min.css" /> <style> header .nav img { height: 18px; color: #c63240; } .nav-link.active { border-radius: 0; background-color: #173d7e !important; } .btn-primary { background-color: #2a5398 !important; border: 1px solid #2a5398 !important; } </style> </head> <body> <header class="d-flex flex-row justify-content-between align-items-center text-white px-2" style="background-color: #2a5398"> <div class="d-flex flex-row align-items-center"> <i class="bi bi-activity" style="font-size: 2rem"></i> <h4 class="ms-2 pt-2">text1 text</h4> </div> <ul class="nav nav-pills d-flex"> <li class="nav-items px-2"> <a class="nav-link active d-flex flex-row align-items-center text-white" href="home.html" target="content"> <i class="bi bi-bar-chart"></i> <span class="ms-1">menu1</span> </a> </li> <li class="nav-items px-2 d-flex flex-row align-items-center"> <div class="dropdown"> <a style="background-color: #2a5398" class="btn btn-sm dropdown-toggle text-white" type="button" id="dropdownMenuButton2" data-bs-toggle="dropdown" aria-expanded="false"> <i class="bi bi-bar-chart"></i><span class="ms-1">menu2</span> </a> <ul class="dropdown-menu" aria-labelledby="dropdownMenuButton2"> <li><a class="dropdown-item" href="history.html">menu3</a></li> <li><a class="dropdown-item" href="alert.html">menu4</a></li> <li><a class="dropdown-item" href="#">menu5</a></li> </ul> </div> </li> <li class="nav-items px-2"> <a class="nav-link d-flex flex-row align-items-center text-white" href="home.html" target="content"> <i class="bi bi-bar-chart"></i> <span class="ms-1">menu6</span> </a> </li> <li class="nav-items px-2"> <a class="nav-link d-flex flex-row align-items-center text-white"> <i class="bi bi-bar-chart"></i><span class="ms-1">logout</span> </a> </li> <li class="nav-items px-2 d-flex flex-row align-items-center"> <div class="dropdown"> <a style="background-color: #2a5398" class="btn btn-sm dropdown-toggle text-white" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">语言</a> <ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1"> <li><a class="dropdown-item" href="#">text3</a></li> <li><a class="dropdown-item" href="#">text4</a></li> </ul> </div> </li> </ul> </header> </body> <script src="../public/plugins/bootstrap-5.1.3/js/bootstrap.bundle.js"></script> </html>
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· 【自荐】一款简洁、开源的在线白板工具 Drawnix