- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个使用 Bootstrap 4 的导航布局。我已经尽我所能让它看起来很专业,但我正在努力让它在桌面和移动布局上看起来像我想要的方式(在移动设备上,主要是切换按钮显示在右侧)。
我非常精通这类事情,但我忙于后端工作,我想 flexbox 并没有按我预期的方式工作。
在桌面上,我试图在导航中获取 account
链接,并使其与顶部导航行右对齐,在移动设备上,我想要 account
链接放置在折叠导航的底部。
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- bootstrap, js, and jquery -->
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- js -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.bundle.min.js"></script>
<!-- font awesome-->
<link href="https://exactestate.sfo2.digitaloceanspaces.com/static/fontawesome-pro/css/all.css" rel="stylesheet" type="text/css"/>
<!-- custom files -->
<link href="https://exactestate.sfo2.digitaloceanspaces.com/static/css/main_style.css" rel="stylesheet" type="text/css"/>
<link href="https://exactestate.sfo2.digitaloceanspaces.com/static/css/form_style.css" rel="stylesheet" type="text/css"/>
<link href="https://exactestate.sfo2.digitaloceanspaces.com/static/css/animation_css.css" rel="stylesheet" type="text/css"/>
<script src="https://exactestate.sfo2.digitaloceanspaces.com/static/js/local_timezone_cookie.js"></script>
</head>
<body>
<div class="main">
<style>
#logo {
vertical-align: middle;
width: 50px;
}
.navbar-brand span {
color: white;
font-size: 2rem;
line-height: 1.2;
font-weight: 200;
display: inline-block;
vertical-align: middle;
padding: 0 0 0 15px;
}
.navbar-brand b {
display: block;
font-size: 50%;
line-height: 1;
}
</style>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="navbar-toggler-right">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar"
aria-controls="navbarToggler" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</div>
<div class="collapse navbar-collapse flex-column" id="navbar">
<!-------------------------------------------------------------------------------------------------------no flex -->
<ul class="navbar-nav mr-auto no_flex">
<a class="navbar-brand" href="#"><img id="logo" alt="Logo" src="https://exactestate.sfo2.digitaloceanspaces.com/static/images/logo_white.png">
<span>ExactEstate<b>Management Software</b></span>
</a>
</ul>
<ul class="navbar-nav mr-auto">
<!-------------------------------------------------------------------------------------------------------Users-->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navDropdown" role="button" data-toggle="dropdown">
<i class="fas fa-users" style="color:white;"></i> Users
</a>
<div class="dropdown-menu" aria-labelledby="navDropdown">
<a class="dropdown-item" href="{% url 'users_create' CLIENT.id %}"><i
class="far fa-user-plus"></i> Register User</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="{% url 'users_index' CLIENT.id %}"><i
class="fas fa-users"></i> Users</a>
</div>
</li>
<!-------------------------------------------------------------------------------------------------------Applications-->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown">
<i class="fa fa-book" style="color:white;"></i> Applications
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="{% url 'applications_create' CLIENT.id %}">
<i class="fas fa-file-plus"></i> New Application</a>
<a class="dropdown-item" href="{% url 'applications_index' CLIENT.id %}">
<i class="fas fa-cabinet-filing"></i> Existing Applications</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item"
href="{% url 'applications_processing_management' CLIENT.id %}">
<i class="far fa-ballot-check"></i> Management Processing</a>
<a class="dropdown-item"
href="{% url 'applications_processing_compliance' CLIENT.id %}">
<i class="fas fa-ballot-check"></i> Compliance Processing</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item"
href="{% url 'applications_preleasing' CLIENT.id %}">
<i class="fa fa-book"></i> Application Dashboard and Preleasing</a>
</div>
</li>
<!-------------------------------------------------------------------------------------------------------Properties-->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navDropdown" role="button">
<i class="far fa-building" style="color:white;"></i> Properties
</a>
<div class="dropdown-menu" aria-labelledby="navDropdown">
<a class="dropdown-item" href="{% url 'properties_index' CLIENT.id %}">
<i class="far fa-building"></i> Properties</a>
<a class="dropdown-item" href="{% url 'properties_units_search' CLIENT.id %}">
<i class="fas fa-bed"></i> Units</a>
<a class="dropdown-item" href="{% url 'properties_water_billing_index' CLIENT.id %}">
<i class="far fa-tint"></i> Water Billing</a>
<a class="dropdown-item" href="{% url 'merchant_accounts_index' CLIENT.id %}">
<i class="far fa-usd-square"></i> Merchants</a>
</div>
</li>
<!-------------------------------------------------------------------------------------------------------Prospects-->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navDropdown" role="button" data-toggle="dropdown">
<i class="far fa-layer-plus" style="color:white;"></i> Prospects
</a>
<div class="dropdown-menu" aria-labelledby="navDropdown">
<a class="dropdown-item" href="{% url 'guest_cards_index' CLIENT.id %}">
<i class="fal fa-id-card-alt"></i> Guest Cards
</a>
<a class="dropdown-item" href="{% url 'appointments_index' CLIENT.id %}">
<i class="fal fa-phone"></i> Appointments
</a>
</div>
</li>
<!-------------------------------------------------------------------------------------------------------Residents-->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navDropdown" role="button" data-toggle="dropdown">
<i class="far fa-people-carry" style="color:white;"></i> Residents
</a>
<div class="dropdown-menu" aria-labelledby="navDropdown">
<a class="dropdown-item" href="{% url 'residents_ledgers_index' CLIENT.id %}">
<i class="far fa-file-invoice-dollar"></i> Ledgers</a>
<a class="dropdown-item" href="{% url 'residents_late_fees' CLIENT.id %}">
<i class="far fa-file-invoice-dollar"></i> Late Fee Declaration</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="{% url 'residents_index' CLIENT.id %}">
<i class="fas fa-search"></i> Resident Search</a>
<a class="dropdown-item" href="{% url 'residents_extras_index' CLIENT.id %}">
<i class="fas fa-plus-square"></i> Resident Extras</a>
<a class="dropdown-item" href="{% url 'residents_create' CLIENT.id %}">
<i class="fal fa-person-booth"></i> Enter Residents</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="{% url 'residents_renewals' CLIENT.id %}">
<i class="fal fa-calendar-plus"></i> Renewals</a>
{# <a class="dropdown-item" href="\{{ CLIENT.id }}\residents\renewal_settings\">#}
{# <i class="fal fa-cog"></i> Renewal Settings</a>#}
</div>
</li>
<!-------------------------------------------------------------------------------------------------------Tasks-->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navDropdown" role="button" data-toggle="dropdown">
<i class="fas fa-tasks" style="{% if OPEN_TASKS %}color:red;{% else %}color:white;{% endif %}"></i> Tasks
</a>
<div class="dropdown-menu" aria-labelledby="navDropdown">
<a class="dropdown-item" href="{% url 'tasks_create' CLIENT.id %}">
<i class="far fa-plus"></i> Create </a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="{% url 'tasks_list' CLIENT.id %}">
<i class="fal fa-eye" style="{% if OPEN_USER_TASKS %}color:red;{% endif %}"></i> View Completable Tasks
</a>
<a class="dropdown-item" href="{% url 'tasks_status' CLIENT.id %}">
<i class="fal fa-eye" style="{% if OPEN_SYSTEM_TASKS %}color:red;{% endif %}"></i> View Created Tasks
</a>
</div>
</li>
<!----------------------------------------------------------------------------------------------------Reports-->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navDropdown" role="button" data-toggle="dropdown">
<i class="fas fa-file-chart-line" style="color:white;"></i> Reports
</a>
<div class="dropdown-menu" aria-labelledby="navDropdown">
<a class="dropdown-item" href="{% url 'reports_index' CLIENT.id %}">
<i class="far fa-file-chart-line"></i> Reports
</a>
</div>
</li>
</ul>
<ul class="navbar-nav mr-auto">
<!------------------------------------------------------------------------------------------------------Documents-->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown">
<i class="fas fa-folder-open" style="color:white;"></i> Documents
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="{% url 'documents_upload' CLIENT.id %}">
<i class="far fa-file-upload"> </i> Upload Documents </a>
<a class="dropdown-item" href="{% url 'documents_index' CLIENT.id %}">
<i class="far fa-file-download"></i> Download Documents </a>
<a class="dropdown-item" href="{% url 'documents_builder_index' CLIENT.id %}">
<i class="far fa-hard-hat"></i> Document Builder </a>
</div>
</li>
<!------------------------------------------------------------------------------------------------------Forms-->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown">
<i class="fab fa-wpforms" style="color:white;"></i> Forms
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="{% url 'forms_index' CLIENT.id %}">
<i class="fab fa-wpforms"></i> View Forms</a>
<a class="dropdown-item" href="{% url 'forms_declarations_index' CLIENT.id %}">
<i class="fab fa-wpforms"></i> Create Form Declarations</a>
</div>
</li>
<!-------------------------------------------------------------------------------------------------------Work Orders-->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navDropdown" role="button" data-toggle="dropdown">
<i class="far fa-user-hard-hat" style="color:white;"></i> Work Orders
</a>
<div class="dropdown-menu" aria-labelledby="navDropdown">
<a class="dropdown-item" href="{% url 'work_orders_declarations' CLIENT.id %}">
<i class="fal fa-flag-checkered"></i> Work Order Declaration </a>
<a class="dropdown-item" href="{% url 'work_orders_index' CLIENT.id %}">
<i class="fal fa-eye"></i> View Work Orders
</a>
<a class="dropdown-item" href="{% url 'work_orders_submit' CLIENT.id %}">
<i class="fas fa-clipboard-list"></i> Submit Work Order
</a>
</div>
</li>
<!-------------------------------------------------------------------------------------------------------Visitors-->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#"
id="navbarDropdown" role="button"
data-toggle="dropdown" aria-haspopup="true"
aria-expanded="false">
<i class="fa fa-user-plus" style="color:white;"></i> Visitors
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="{% url 'visitors_enter' CLIENT.id %}"><i class="fas fa-user-plus"></i> Enter
Visitor</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="{% url 'visitors_index' CLIENT.id %}"><i class="fas fa-users"></i> Visitors</a>
</div>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#"
id="navDropdown" role="button"
data-toggle="dropdown" aria-haspopup="true"
aria-expanded="false">
<i class="fas fa-user" style="color: white"></i> Account
</a>
<div class="dropdown-menu dropdown-menu-left" aria-labelledby="navDropdown">
<h4 style="text-align:center;">Account </h4>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="{% url 'update_account' CLIENT.id %}">
<i class="far fa-edit"></i> Edit Account Information</a>
<a class="dropdown-item" href="{% url 'login_logout' CLIENT.id %}">
<i class="far fa-sign-out-alt"></i> Logout</a>
</div>
</li>
</ul>
</div>
</nav>
最佳答案
编辑:在 OP 明确表示他的期望后,我修改了代码并添加了 media queries由于移动屏幕和桌面屏幕之间元素的不同定位,我仍然保留了整个菜单的 div
包装器并使其成为 float-left
。
下面的演示:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- bootstrap, js, and jquery -->
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- js -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.bundle.min.js"></script>
<!-- font awesome-->
<link href="https://exactestate.sfo2.digitaloceanspaces.com/static/fontawesome-pro/css/all.css" rel="stylesheet" type="text/css"/>
<!-- custom files -->
<link href="https://exactestate.sfo2.digitaloceanspaces.com/static/css/main_style.css" rel="stylesheet" type="text/css"/>
<link href="https://exactestate.sfo2.digitaloceanspaces.com/static/css/form_style.css" rel="stylesheet" type="text/css"/>
<link href="https://exactestate.sfo2.digitaloceanspaces.com/static/css/animation_css.css" rel="stylesheet" type="text/css"/>
<script src="https://exactestate.sfo2.digitaloceanspaces.com/static/js/local_timezone_cookie.js"></script>
</head>
<style>
.example{
border: solid black;
}
</style>
<body>
<div class="main">
<header>
<style>
#logo {
vertical-align: middle;
width: 50px;
}
.navbar-brand span {
color: white;
font-size: 2rem;
line-height: 1.2;
font-weight: 200;
display: inline-block;
vertical-align: middle;
padding: 0 0 0 15px;
}
.navbar-brand b {
display: block;
font-size: 50%;
line-height: 1;
}
@media (min-width: 992px) {
#applicationsMenu {
margin-left: 100px;
margin-top: -50px;
}
#documentsMenu {
margin-left: 100px;
}
#accountMenu {
position: absolute !important;
top: 5px;
right: 10px;
}
}
</style>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="navbar-toggler-right ml-auto">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar"
aria-controls="navbarToggler" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="navbar">
<div class="float-left">
<!-------------------------------------------------------------------------------------------------------no fle -->
<a class="navbar-brand" href="#"><img id="logo" alt="Logo" src="https://exactestate.sfo2.digitaloceanspaces.com/static/images/logo_white.png">
<span class="d-lg-none">ExactEstate<b>Management Software</b></span>
</a>
<ul id="applicationsMenu" class="navbar-nav">
<!-------------------------------------------------------------------------------------------------------Users-->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown">
<i class="fas fa-users" style="color:white;"></i> Users
</a>
<div class="dropdown-menu" aria-labelledby="navDropdown">
<a class="dropdown-item" href="{% url 'users_create' CLIENT.id %}"><i
class="far fa-user-plus"></i> Register User</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="{% url 'users_index' CLIENT.id %}"><i
class="fas fa-users"></i> Users</a>
</div>
</li>
<!-------------------------------------------------------------------------------------------------------Applications-->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown">
<i class="fa fa-book" style="color:white;"></i> Applications
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="{% url 'applications_create' CLIENT.id %}">
<i class="fas fa-file-plus"></i> New Application</a>
<a class="dropdown-item" href="{% url 'applications_index' CLIENT.id %}">
<i class="fas fa-cabinet-filing"></i> Existing Applications</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item"
href="{% url 'applications_processing_management' CLIENT.id %}">
<i class="far fa-ballot-check"></i> Management Processing</a>
<a class="dropdown-item"
href="{% url 'applications_processing_compliance' CLIENT.id %}">
<i class="fas fa-ballot-check"></i> Compliance Processing</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item"
href="{% url 'applications_preleasing' CLIENT.id %}">
<i class="fa fa-book"></i> Application Dashboard and Preleasing</a>
</div>
</li>
<!-------------------------------------------------------------------------------------------------------Properties-->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button">
<i class="far fa-building" style="color:white;"></i> Properties
</a>
<div class="dropdown-menu" aria-labelledby="navDropdown">
<a class="dropdown-item" href="{% url 'properties_index' CLIENT.id %}">
<i class="far fa-building"></i> Properties</a>
<a class="dropdown-item" href="{% url 'properties_units_search' CLIENT.id %}">
<i class="fas fa-bed"></i> Units</a>
<a class="dropdown-item" href="{% url 'properties_water_billing_index' CLIENT.id %}">
<i class="far fa-tint"></i> Water Billing</a>
<a class="dropdown-item" href="{% url 'merchant_accounts_index' CLIENT.id %}">
<i class="far fa-usd-square"></i> Merchants</a>
</div>
</li>
<!-------------------------------------------------------------------------------------------------------Prospects-->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown">
<i class="far fa-layer-plus" style="color:white;"></i> Prospects
</a>
<div class="dropdown-menu" aria-labelledby="navDropdown">
<a class="dropdown-item" href="{% url 'guest_cards_index' CLIENT.id %}">
<i class="fal fa-id-card-alt"></i> Guest Cards
</a>
<a class="dropdown-item" href="{% url 'appointments_index' CLIENT.id %}">
<i class="fal fa-phone"></i> Appointments
</a>
</div>
</li>
<!-------------------------------------------------------------------------------------------------------Residents-->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown">
<i class="far fa-people-carry" style="color:white;"></i> Residents
</a>
<div class="dropdown-menu" aria-labelledby="navDropdown">
<a class="dropdown-item" href="{% url 'residents_ledgers_index' CLIENT.id %}">
<i class="far fa-file-invoice-dollar"></i> Ledgers</a>
<a class="dropdown-item" href="{% url 'residents_late_fees' CLIENT.id %}">
<i class="far fa-file-invoice-dollar"></i> Late Fee Declaration</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="{% url 'residents_index' CLIENT.id %}">
<i class="fas fa-search"></i> Resident Search</a>
<a class="dropdown-item" href="{% url 'residents_extras_index' CLIENT.id %}">
<i class="fas fa-plus-square"></i> Resident Extras</a>
<a class="dropdown-item" href="{% url 'residents_create' CLIENT.id %}">
<i class="fal fa-person-booth"></i> Enter Residents</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="{% url 'residents_renewals' CLIENT.id %}">
<i class="fal fa-calendar-plus"></i> Renewals</a>
{# <a class="dropdown-item" href="\23\residents\renewal_settings\">#}
{# <i class="fal fa-cog"></i> Renewal Settings</a>#}
</div>
</li>
<!-------------------------------------------------------------------------------------------------------Tasks-->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown">
<i class="fas fa-tasks" style="{% if OPEN_TASKS %}color:red;{% else %}color:white;{% endif %}"></i> Tasks
</a>
<div class="dropdown-menu" aria-labelledby="navDropdown">
<a class="dropdown-item" href="{% url 'tasks_create' CLIENT.id %}">
<i class="far fa-plus"></i> Create </a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="{% url 'tasks_list' CLIENT.id %}">
<i class="fal fa-eye" style="{% if OPEN_USER_TASKS %}color:red;{% endif %}"></i> View Completable Tasks
</a>
<a class="dropdown-item" href="{% url 'tasks_status' CLIENT.id %}">
<i class="fal fa-eye" style="{% if OPEN_SYSTEM_TASKS %}color:red;{% endif %}"></i> View Created Tasks
</a>
</div>
</li>
<!----------------------------------------------------------------------------------------------------Reports-->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown">
<i class="fas fa-file-chart-line" style="color:white;"></i> Reports
</a>
<div class="dropdown-menu" aria-labelledby="navDropdown">
<a class="dropdown-item" href="{% url 'reports_index' CLIENT.id %}">
<i class="far fa-file-chart-line"></i> Reports
</a>
</div>
</li>
</ul>
<ul id="documentsMenu" class="navbar-nav">
<!------------------------------------------------------------------------------------------------------Documents-->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown">
<i class="fas fa-folder-open" style="color:white;"></i> Documents
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="{% url 'documents_upload' CLIENT.id %}">
<i class="far fa-file-upload"> </i> Upload Documents </a>
<a class="dropdown-item" href="{% url 'documents_index' CLIENT.id %}">
<i class="far fa-file-download"></i> Download Documents </a>
<a class="dropdown-item" href="{% url 'documents_builder_index' CLIENT.id %}">
<i class="far fa-hard-hat"></i> Document Builder </a>
</div>
</li>
<!------------------------------------------------------------------------------------------------------Forms-->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown">
<i class="fab fa-wpforms" style="color:white;"></i> Forms
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="{% url 'forms_index' CLIENT.id %}">
<i class="fab fa-wpforms"></i> View Forms</a>
<a class="dropdown-item" href="{% url 'forms_declarations_index' CLIENT.id %}">
<i class="fab fa-wpforms"></i> Create Form Declarations</a>
</div>
</li>
<!-------------------------------------------------------------------------------------------------------Work Orders-->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown">
<i class="far fa-user-hard-hat" style="color:white;"></i> Work Orders
</a>
<div class="dropdown-menu" aria-labelledby="navDropdown">
<a class="dropdown-item" href="{% url 'work_orders_declarations' CLIENT.id %}">
<i class="fal fa-flag-checkered"></i> Work Order Declaration </a>
<a class="dropdown-item" href="{% url 'work_orders_index' CLIENT.id %}">
<i class="fal fa-eye"></i> View Work Orders
</a>
<a class="dropdown-item" href="{% url 'work_orders_submit' CLIENT.id %}">
<i class="fas fa-clipboard-list"></i> Submit Work Order
</a>
</div>
</li>
<!-------------------------------------------------------------------------------------------------------Visitors-->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#"
id="navbarDropdown" role="button"
data-toggle="dropdown" aria-haspopup="true"
aria-expanded="false">
<i class="fa fa-user-plus" style="color:white;"></i> Visitors
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="{% url 'visitors_enter' CLIENT.id %}"><i class="fas fa-user-plus"></i> Enter
Visitor</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="{% url 'visitors_index' CLIENT.id %}"><i class="fas fa-users"></i> Visitors</a>
</div>
</li>
<li id="accountMenu" class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#"
role="button"
data-toggle="dropdown" aria-haspopup="true"
aria-expanded="false">
<i class="fas fa-user" style="color: white"></i> Account
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navDropdown">
<h4 style="text-align:center;">Account </h4>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="{% url 'update_account' CLIENT.id %}">
<i class="far fa-edit"></i> Edit Account Information</a>
<a class="dropdown-item" href="{% url 'login_logout' CLIENT.id %}">
<i class="far fa-sign-out-alt"></i> Logout</a>
</div>
</li>
</ul>
</div>
</div>
</nav>
</header>
</div>
<footer>
<div class="accent_color" style="height:5px;"></div>
<div class="over_copyright" style="min-height: 25px;">
<div class="container-fluid center">
<div class="row">
<div class="col-sm-6"><p class="in_footer_text" style="text-align: left;"></p></div>
<div class="col-sm-6"><p class="in_footer_text" style="text-align: right;"></p></div>
</div>
</div>
</div>
<p class="in_footer_text">© ViaTech Systems® 2019. All Rights Reserved.</p>
</footer>
</body>
</html>
关于html - Bootstrap Navigation Flex-Column 问题与堆叠 ml-auto 和 mr-auto,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56398915/
这个问题在这里已经有了答案: Range based loop: get item by value or reference to const? (5 个答案) 关闭 6 年前。 如果我有这样的类
最近,我使用 CSS grid 创建了一个布局.虽然这很好用,但我对它的工作原理感到困惑。具体来说,我对 grid-template-rows: auto auto 1fr auto; 这一行感到困惑
这个问题在这里已经有了答案: 关闭 10 年前。 Possible Duplicate: Why don't margin-top: auto and margin-bottom:auto work
我几乎已经尝试了所有我知道的方法,但是当我将我的 Android studio 更新到最新版本时,它仍然显示此错误。我该怎么办? gradle.build 是: buildscript { r
我想创建一个deep_flatten函数模板,该模板将生成包含range ed的元素的join。例如,如果仅考虑嵌套的std::vector,我可以拥有: template struct is_ve
我刚刚看了 Scott Meyers Universal References in C++11有一件事我不太明白。 我对作为“通用引用”的 auto 之间的区别感到有点困惑,即 auto&& 和常规
这个问题在这里已经有了答案: C++11 Range-based for-loop efficiency "const auto &i" versus "auto i" (3 个答案) 关闭 3 年
由于 auto 关键字在编译时获取类类型,我想知道使用 auto* 是否有任何效率,或者是否有任何特殊用途该表达式,因为 auto 在编译时已经获得了指针类型。 最佳答案 这个“新奇的 C++11”与
请问我是否正确,对函数返回值使用 auto&& 总是比使用 auto 更好。例如,在 auto val = someObj.getVal(); 如果 getVal() 返回引用,则 val 将是一个拷
有区别吗: template constexpr decltype(auto) f(T&& x) -> decltype(std::get(std::forward(x))) { retur
我想创建一个 deep_flatten会产生 range 的函数模板深的元素join编。例如,如果我们只考虑嵌套 std::vector s,我可以有: template struct is_vec
我在玩auto在 std::pair .在下面的代码中,函数 f应该返回 std::pair依赖于模板参数的类型。 一个工作示例: 示例 1 template auto f() { if c
我是一名 Android 开发人员,我正在尝试开发一个定制的 Android Auto 应用程序,它可以简单地镜像手机屏幕。 我知道目前 API 仅适用于音乐和消息应用程序,但我会编写一个应用程序来镜
我有一个很大的 div,里面有文字: #big-div { height: 400px; overflow: auto; } 如何才能使当新内容添加到 div(并发生溢出)时,div
我正在尝试设计一个网站,其中包含一个带有溢出的内容区域:自动和一个动态高度。最好是,我希望能够在 overflow: auto div 下方放置一个页眉和一个页脚,并让该 div 占用剩余的空间,但到
这个问题在这里已经有了答案: Does 'auto' type assignments of a pointer in c++11 require '*'? (3 个答案) 关闭 6 年前。 以下在
当使用 auto&& 处理返回左值的函数时: int func() { int v=42; return v; } auto && v = func(); 将 v 视为引用而不是左值会产生
我读了一篇关于 auto 类型推导的文章,使用 decltype 我想知道我在下面的例子中关于如何推导类型的逻辑是否正确(所以如果我是有误请指正:) #include using namespace
这个问题在这里已经有了答案: What's the semantically accurate position for the ampersand in C++ references (3 个回答)
假设我有 class Container { public: T getValue() const { return t; } const T& getCRef() const {
我是一名优秀的程序员,十分优秀!