bootstrap实现自适应工具箱页面布局代码
代码语言:html
所属分类:布局界面
代码描述:bootstrap实现自适应工具箱页面布局代码
代码标签: bootstrap 自适应 工具箱 页面 布局 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>AI工具箱</title> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bootstrap.5.3.0.css"> <style> .tool-card { padding: 20px; border-radius: 10px; background: #f8f9fa; cursor: pointer; transition: all 0.3s; } .tool-card:hover { background: #e9ecef; transform: translateY(-2px); } .tool-icon { font-size: 24px; margin-bottom: 10px; } .tool-title { font-size: 16px; font-weight: bold; margin-bottom: 5px; } .tool-desc { font-size: 12px; color: #6c757d; } .search-box { border-radius: 25px; border: 1px solid #dee2e6; padding: 8px 15px; } .nav-tabs { border: none; justify-content: center; margin: 30px 0; } .nav-tabs .nav-link { border: none; color: #6c757d; padding: 10px 20px; } .nav-tabs .nav-link.active { color: #0d6efd; border-bottom: 2px solid #0d6efd; background: none; } .tab-content { display: none; } .tab-content.active { display: block; } @media (min-width: 992px) { .search-container{ width: 40%; margin: 0 auto; } .tab-content , .nav-tabs{ width: 70%; margin: 15px auto; } } </style> </head> <body> <div class="container py-5"> <h1 class="text-center mb-3">AI工具箱</h1> <h4 class="text-center text-muted mb-4">提效你的工作和学习</h4> <div class="search-container mb-4"> <div class="input-group"> <input type="text" class="form-control search-box" placeholder="上传文件,智能推荐工具"> <button class="btn btn-outline-secondary" type="button"> <i class="bi bi-upload">搜搜</i> </button> </div> </div> <ul class="nav nav-tabs" id="myTab"> <li class="nav-item"> <a class="nav-link active" data-tab="tab1" href="#">常用推荐</a> </li> <li class="nav-item"> <a class="nav-link" data-tab="tab2" href="#">办公提效</a> </li> <li class="nav-item"> <a class="nav-link" data-tab="tab3" href="#">学习助手</a> </li> <.........完整代码请登录后点击上方下载按钮下载查看
网友评论0