Bootstrap有一系列现成的免费而优秀的模板,我们可以用于制作前端页面
稍加改进就是一个美观的页面
模板代码(源自purpleTemplate):
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>TransformMine</title> <link rel="stylesheet" href="assets/vendors/mdi/css/materialdesignicons.min.css"> <link rel="stylesheet" href="assets/vendors/css/vendor.bundle.base.css"> <link rel="stylesheet" href="assets/css/style.css"> <link rel="shortcut icon" href="assets/images/favicon.ico" /> </head> <body> <div class="container-scroller"> <!-- partial:partials/_navbar.html --> <nav class="navbar default-layout-navbar col-lg-12 col-12 p-0 fixed-top d-flex flex-row"> <div class="text-center navbar-brand-wrapper d-flex align-items-center justify-content-center"> <a class="navbar-brand brand-logo" href="index.html"><img src="assets/images/trans.png" alt="logo"/></a> <a class="navbar-brand brand-logo-mini" href="index.html"><img src="assets/images/logo-mini.svg" alt="logo" /></a> </div> <div class="navbar-menu-wrapper d-flex align-items-stretch"> <button class="navbar-toggler navbar-toggler align-self-center" type="button" data-toggle="minimize"> <span class="mdi mdi-menu"></span> </button> <div class="search-field d-none d-md-block"> <form class="d-flex align-items-center h-100" action="#"> <div class="input-group"> <div class="input-group-prepend bg-transparent"> <i class="input-group-text border-0 mdi mdi-magnify"></i> </div> <input type="text" class="form-control bg-transparent border-0" placeholder="Search projects"> </div> </form> </div> <ul class="navbar-nav navbar-nav-right"> <li class="nav-item nav-profile dropdown"> <a class="nav-link dropdown-toggle" id="profileDropdown" href="#" data-bs-toggle="dropdown" aria-expanded="false"> <div class="nav-profile-img"> <img src="assets/images/faces/face1.jpg" alt="image"> <span class="availability-status online"></span> </div> <div class="nav-profile-text"> <p class="mb-1 text-black">游客</p> </div> </a> <div class="dropdown-menu navbar-dropdown" aria-labelledby="profileDropdown"> <a class="dropdown-item" href="#"> <i class="mdi mdi-cached me-2 text-success"></i> 登录 </a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="#"> <i class="mdi mdi-logout me-2 text-primary"></i> 登出 </a> </div> </li> <li class="nav-item d-none d-lg-block full-screen-link"> <a class="nav-link"> <i class="mdi mdi-fullscreen" id="fullscreen-button"></i> </a> </li> <li class="nav-item dropdown"> <a class="nav-link count-indicator dropdown-toggle" id="messageDropdown" href="#" data-bs-toggle="dropdown" aria-expanded="false"> <i class="mdi mdi-email-outline"></i> <span class="count-symbol bg-warning"></span> </a> <div class="dropdown-menu dropdown-menu-right navbar-dropdown preview-list" aria-labelledby="messageDropdown"> <h6 class="p-3 mb-0">Messages</h6> <div class="dropdown-divider"></div> <a class="dropdown-item preview-item"> <div class="preview-thumbnail"> <img src="assets/images/faces/face4.jpg" alt="image" class="profile-pic"> </div> <div class="preview-item-content d-flex align-items-start flex-column justify-content-center"> <h6 class="preview-subject ellipsis mb-1 font-weight-normal">Mark send you a message</h6> <p class="text-gray mb-0"> 1 Minutes ago </p> </div> </a> <div class="dropdown-divider"></div> <a class="dropdown-item preview-item"> <div class="preview-thumbnail"> <img src="assets/images/faces/face2.jpg" alt="image" class="profile-pic"> </div> <div class="preview-item-content d-flex align-items-start flex-column justify-content-center"> <h6 class="preview-subject ellipsis mb-1 font-weight-normal">Cregh send you a message</h6> <p class="text-gray mb-0"> 15 Minutes ago </p> </div> </a> <div class="dropdown-divider"></div> <h6 class="p-3 mb-0 text-center">4 new messages</h6> </div> </li> <li class="nav-item dropdown"> <a class="nav-link count-indicator dropdown-toggle" id="notificationDropdown" href="#" data-bs-toggle="dropdown"> <i class="mdi mdi-bell-outline"></i> <span class="count-symbol bg-danger"></span> </a> <div class="dropdown-menu dropdown-menu-right navbar-dropdown preview-list" aria-labelledby="notificationDropdown"> <h6 class="p-3 mb-0">Notifications</h6> <div class="dropdown-divider"></div> <a class="dropdown-item preview-item"> <div class="preview-thumbnail"> <div class="preview-icon bg-success"> <i class="mdi mdi-calendar"></i> </div> </div> <div class="preview-item-content d-flex align-items-start flex-column justify-content-center"> <h6 class="preview-subject font-weight-normal mb-1">Event today</h6> <p class="text-gray ellipsis mb-0"> Just a reminder that you have an event today </p> </div> </a> <div class="dropdown-divider"></div> <a class="dropdown-item preview-item"> <div class="preview-thumbnail"> <div class="preview-icon bg-warning"> <i class="mdi mdi-settings"></i> </div> </div> <div class="preview-item-content d-flex align-items-start flex-column justify-content-center"> <h6 class="preview-subject font-weight-normal mb-1">Settings</h6> <p class="text-gray ellipsis mb-0"> Update dashboard </p> </div> </a> <div class="dropdown-divider"></div> <a class="dropdown-item preview-item"> <div class="preview-thumbnail"> <div class="preview-icon bg-info"> <i class="mdi mdi-link-variant"></i> </div> </div> <div class="preview-item-content d-flex align-items-start flex-column justify-content-center"> <h6 class="preview-subject font-weight-normal mb-1">Launch Admin</h6> <p class="text-gray ellipsis mb-0"> New admin wow! </p> </div> </a> <div class="dropdown-divider"></div> <h6 class="p-3 mb-0 text-center">See all notifications</h6> </div> </li> <li class="nav-item nav-logout d-none d-lg-block"> <a class="nav-link" href="#"> <i class="mdi mdi-power"></i> </a> </li> <li class="nav-item nav-settings d-none d-lg-block"> <a class="nav-link" href="#"> <i class="mdi mdi-format-line-spacing"></i> </a> </li> </ul> <button class="navbar-toggler navbar-toggler-right d-lg-none align-self-center" type="button" data-toggle="offcanvas"> <span class="mdi mdi-menu"></span> </button> </div> </nav> <!-- partial --> <div class="container-fluid page-body-wrapper"> <!-- partial:partials/_sidebar.html --> <nav class="sidebar sidebar-offcanvas" id="sidebar"> <ul class="nav"> <li class="nav-item nav-profile"> <a href="#" class="nav-link"> <div class="nav-profile-image"> <img src="assets/images/faces/face1.jpg" alt="profile"> <span class="login-status online"></span> <!--change to offline or busy as needed--> </div> <div class="nav-profile-text d-flex flex-column"> <span class="font-weight-bold mb-2">游客账户</span> <span class="text-secondary text-small">未登录</span> </div> <i class="mdi mdi-bookmark-check text-success nav-profile-badge"></i> </a> </li> <li class="nav-item"> <a class="nav-link" href="index.html"> <span class="menu-title">主页</span> <i class="mdi mdi-home menu-icon"></i> </a> </li> <li class="nav-item"> <a class="nav-link" data-bs-toggle="collapse" href="#ui-basic" aria-expanded="false" aria-controls="ui-basic"> <span class="menu-title">基础UI要素</span> <i class="menu-arrow"></i> <i class="mdi mdi-crosshairs-gps menu-icon"></i> </a> <div class="collapse" id="ui-basic"> <ul class="nav flex-column sub-menu"> <li class="nav-item"> <a class="nav-link" href="pages/ui-features/buttons.html">Buttons</a></li> <li class="nav-item"> <a class="nav-link" href="pages/ui-features/typography.html">Typography</a></li> </ul> </div> </li> <li class="nav-item"> <a class="nav-link" href="pages/icons/mdi.html"> <span class="menu-title">图标</span> <i class="mdi mdi-contacts menu-icon"></i> </a> </li> <li class="nav-item"> <a class="nav-link" href="pages/forms/basic_elements.html"> <span class="menu-title">类型</span> <i class="mdi mdi-format-list-bulleted menu-icon"></i> </a> </li> <li class="nav-item"> <a class="nav-link" href="pages/charts/chartjs.html"> <span class="menu-title">Charts</span> <i class="mdi mdi-chart-bar menu-icon"></i> </a> </li> <li class="nav-item"> <a class="nav-link" href="pages/tables/basic-table.html"> <span class="menu-title">图表</span> <i class="mdi mdi-table-large menu-icon"></i> </a> </li> <li class="nav-item"> <a class="nav-link" data-bs-toggle="collapse" href="#general-pages" aria-expanded="false" aria-controls="general-pages"> <span class="menu-title">示例页面</span> <i class="menu-arrow"></i> <i class="mdi mdi-medical-bag menu-icon"></i> </a> <div class="collapse" id="general-pages"> <ul class="nav flex-column sub-menu"> <li class="nav-item"> <a class="nav-link" href="pages/samples/blank-page.html"> 空页面 </a></li> <li class="nav-item"> <a class="nav-link" href="pages/samples/login.html"> 登录 </a></li> <li class="nav-item"> <a class="nav-link" href="pages/samples/register.html"> 注册 </a></li> <li class="nav-item"> <a class="nav-link" href="pages/samples/error-404.html"> 404 </a></li> <li class="nav-item"> <a class="nav-link" href="pages/samples/error-500.html"> 500 </a></li> </ul> </div> </li> <li class="nav-item sidebar-actions"> <span class="nav-link"> <div class="border-bottom"> <h6 class="font-weight-normal mb-3">项目</h6> </div> <button class="btn btn-block btn-lg btn-gradient-primary mt-4">+ Add a project</button> </span> </li> </ul> </nav> <!-- partial --> <div class="main-panel"> <div class="content-wrapper"> <div class="page-header"> <nav aria-label="breadcrumb"> <ul class="breadcrumb"> <li class="breadcrumb-item active" aria-current="page"> <span></span>Overview <i class="mdi mdi-alert-circle-outline icon-sm text-primary align-middle"></i> </li> </ul> </nav> </div> <div class="row"> <div class="col-md-6 grid-margin stretch-card"> <div class="card"> <div class="card-body"> <h3 class="card-title">面临的问题:</h3> <p class="card-description"> 我们了解您的困难 </p> <p> 电厂的数据种类繁多,日常工作中还需要审核多种多样的质检报告,而目前针对与这些报告大多采用人工手抄的方式进行统计,这常会导致一些不必要的问题。例如,采用人工手抄方式常因为抄错而带来繁琐的二次审核,进而增加工作量。其次随着信息化技术的发展,此种方法也不利于对数据的利用及分析。</p> </div> </div> </div> <div class="col-md-6 grid-margin stretch-card"> <div class="card"> <div class="card-body"> <h4 class="card-title">我们的方案:</h4> <p class="card-description"> 表格提取识别重建算法 </p> <p> 针对上述问题我们开发了一种表格提取识别重建算法.该算法可以根据电厂上传的煤质检验检测报告,利用机器视觉技术,准确提取报告中元素数据信息。最后,按照表格的结构输出成EXCEL表格文件,当然,您也可以根据需求,转成HTML或者是PDF格式的文件。</p> </div> </div> </div> </div> <div class="row"> <div class="col-12 grid-margin"> <div class="card"> <div class="card-body"> <h4 class="card-title">我们的优势</h4> <p class="card-description">给您不同的体验 </p> <ul class="list-ticked"> <li>使用方便快捷</li> <li>一键上传,即刻生成</li> <li>保存您的生成记录</li> <li>支持多种格式,能够生成EXCEL,PDF,HTML,满足您的多种需求</li> <li>通过您的上传历史,智能分析整理</li> </ul> </div> </div> </div> </div> <div class="row"> <div class="col-md-7 grid-margin stretch-card"> </div> <div class="col-md-5 grid-margin stretch-card"> <div class="card"> </div> </div> </div> </div> <!-- content-wrapper ends --> <!-- partial:partials/_footer.html --> <footer class="footer"> <div class="container-fluid d-flex justify-content-between"> <span class="text-muted d-block text-center text-sm-start d-sm-inline-block">Copyright © 石家庄铁道大学信息科学与技术学院</span> </div> </footer> <!-- partial --> </div> <!-- main-panel ends --> </div> <!-- page-body-wrapper ends --> </div> <script src="assets/vendors/js/vendor.bundle.base.js"></script> <script src="assets/vendors/chart.js/Chart.min.js"></script> <script src="assets/js/jquery.cookie.js" type="text/javascript"></script> <script src="assets/js/off-canvas.js"></script> <script src="assets/js/hoverable-collapse.js"></script> <script src="assets/js/misc.js"></script> <script src="assets/js/dashboard.js"></script> <script src="assets/js/todolist.js"></script> </body> </html>
标签:网页,表格,Bootstrap,算法,上传,模板,页面 From: https://www.cnblogs.com/rsy-bxf150/p/17334581.html