需要关闭所有已打开的下拉菜单,然后再打开另一个。

huangapple go评论64阅读模式
英文:

In Nav need to close all other dropdowns which are open, while opening another

问题

I have multiple dropdowns within a top level dropdown menu. I have an issue where when I click to open one submenu, it remains open when I click to open another. Would like to auto close the others when another submenu is clicked open.

我的顶级下拉菜单中有多个下拉菜单项。当我点击打开一个子菜单时,另一个子菜单保持打开状态。希望在点击打开另一个子菜单时自动关闭其他子菜单。

Here is the translation for the provided HTML code:

这是提供的HTML代码的翻译:

<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
  <div class="container-fluid"> <a class="navbar-brand" href="#"> LOGO </a>
    <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button>
    
    <!-- start test -->
    
    <div class="row navbar-collapse" id="navbarCollapse">
      <div class="col-md-12 order-last menu-one"> 
        <!-- start -->
        <ul class="navbar-nav ms-auto mb-2 mb-md-0 nav navbar-right justify-content-end">
          <hr class="white d-block d-md-none">
          <li class="nav-item"> <a class="nav-link active" aria-current="page" href="#">登录</a> </li>
          <li class="nav-item"> <a class="nav-link" href="#">支持 <span class="text-ltred">1300 000 123</span></a> </li>
          <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">全球站点</a>
            <ul class="dropdown-menu dropdown-menu-end">
              <li><a class="dropdown-item" href="#">美国/加拿大</a></li>
              <li><a class="dropdown-item" href="#">新西兰</a></li>
            </ul>
          </li>
          <li class="nav-item" id="search">
            <div class="search-box nav-link">
              <input type="text" class="search-input" placeholder="搜索">
              <a class="search-btn" href="#"> ? </a> </div>
          </li>
        </ul>
        <!-- end --> 
      </div>
      <div class="col-md-12 order-md-last menu-two"> 
        <!-- start -->
        <ul class="navbar-nav ms-auto mb-2 mb-md-0 nav navbar-right justify-content-end">
          <li class="nav-item dropdown has-megamenu"> <a class="nav-link dropdown-toggle" href="#" data-bs-toggle="dropdown">解决方案和服务</a>
            <div class="dropdown-menu megamenu" role="menu">
              <div class="row g-3">
                <div class="col-md-6 col-12">
                  <div class="col-megamenu">
                    <h6 class="title">解决方案和服务</h6>
                    <ul class="list-unstyled">
                      <li class="dropend"> <a href="#" class="dropdown-item dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" data-bs-auto-close="true" aria-expanded="false">租赁解决方案</a>
                        <ul class="dropdown-menu no-border">
                          <li><a class="dropdown-item" href="">转移我的车队</a></li>
                          <li><a class="dropdown-item" href="">开始新车队</a></li>
                          <li><a class="dropdown-item" href="">电动车辆</a></li>
                          <li><a class="dropdown-item" href="">下一次租赁</a></li>
                          <li><a class="dropdown-item" href="">卡车、设备</a></li>
                          <li><a class="dropdown-item" href="">二手车</a></li>
                        </ul>
                      </li>
                      <li class="dropend"> <a href="#" class="dropdown-item dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" data-bs-auto-close="true" aria-expanded="false">车队管理服务</a>
                        <ul class="dropdown-menu no-border">
                          <li><a class="dropdown-item" href="">事故管理</a></li>
                          <li><a class="dropdown-item" href="">采购和处置</a></li>
                          <li><a class="dropdown-item" href="">驾驶员安全</a></li>
                          <li><a class="dropdown-item" href="">车队卡</a></li>
                          <li><a class="dropdown-item" href="">租车</a></li>
                          <li><a class="dropdown-item" href="">违规管理</a></li>
                          <li><a class="dropdown-item" href="">保险</a></li>
                          <li><a class="dropdown-item" href="">维护</a></li>
                          <li><a class="dropdown-item" href="">PoolCar共享平台</a></li>
                          <li><a class="dropdown-item" href="">注册</a></li>
                          <li><a class="dropdown-item" href="">道路救援</a></li>
                          <li><a class="dropdown-item" href="">远程监控</a></li>
                          <li><a class="dropdown-item" href="">收费管理</a></li>
                        </ul>
                      </li>
                      <li class="dropend"> <a href="#" class="dropdown-item dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" data-bs-auto-close="true" aria-expanded="false">车队优化</a>
                        <ul class="dropdown-menu no-border">
                          <li><a class="dropdown-item" href="">企业融资</a></li>
                          <li><a class="dropdown-item" href="">租赁</a></li>
                          <li><a class="dropdown-item" href="">销售和租赁回购</a></li>
                          <li><a class="dropdown-item" href="">战略咨询</a></li>
                          <li><a class="dropdown-item" href="">技术集成</a></li>
                        </ul>
                      </li>
                    </ul>
                  </div>
                  <!-- col-megamenu.// --> 
                </div>
                <!-- end col-3 --> 
                
              </div>
              <!-- end row --> 
            </div>
            <!-- dropdown-mega-menu.// --> 
          </li>
          <li class="nav-item"> <a class="nav-link" href="#">司机支

<details>
<summary>英文:</summary>

I have multiple dropdowns within a top level dropdown menu. I have an issue where when I click to open one submenu, it remains open when I click to open another. Would like to auto close the others when another submenu is clicked open.


MY HTML:


<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
<div class="container-fluid"> <a class="navbar-brand" href="#"> LOGO </a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button>

&lt;!-- start test --&gt;
&lt;div class=&quot;row navbar-collapse&quot; id=&quot;navbarCollapse&quot;&gt;
&lt;div class=&quot;col-md-12 order-last menu-one&quot;&gt; 
&lt;!-- start--&gt;
&lt;ul class=&quot;navbar-nav ms-auto mb-2 mb-md-0 nav navbar-right justify-content-end&quot;&gt;
&lt;hr class=&quot;white d-block d-md-none&quot;&gt;
&lt;li class=&quot;nav-item&quot;&gt; &lt;a class=&quot;nav-link active&quot; aria-current=&quot;page&quot; href=&quot;#&quot;&gt;login &lt;/a&gt; &lt;/li&gt;
&lt;li class=&quot;nav-item&quot;&gt; &lt;a class=&quot;nav-link&quot; href=&quot;#&quot;&gt;support &lt;span class=&quot;text-ltred&quot;&gt;1300 000 123&lt;/span&gt;&lt;/a&gt; &lt;/li&gt;
&lt;li class=&quot;nav-item dropdown&quot;&gt; &lt;a class=&quot;nav-link dropdown-toggle&quot; href=&quot;#&quot; role=&quot;button&quot; data-bs-toggle=&quot;dropdown&quot; aria-expanded=&quot;false&quot;&gt;  Global sites &lt;/a&gt;
&lt;ul class=&quot;dropdown-menu dropdown-menu-end&quot;&gt;
&lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;#&quot;&gt;United States / Canada&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;#&quot;&gt;New Zealand&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li class=&quot;nav-item&quot; id=&quot;search&quot;&gt;
&lt;div class=&quot;search-box nav-link&quot;&gt;
&lt;input type=&quot;text&quot; class=&quot;search-input&quot; placeholder=&quot;Search&quot;&gt;
&lt;a class=&quot;search-btn&quot; href=&quot;#&quot;&gt; ? &lt;/a&gt; &lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;!-- end --&gt; 
&lt;/div&gt;
&lt;div class=&quot;col-md-12 order-md-last menu-two&quot;&gt; 
&lt;!-- start--&gt;
&lt;ul class=&quot;navbar-nav ms-auto mb-2 mb-md-0 nav navbar-right justify-content-end&quot;&gt;
&lt;li class=&quot;nav-item dropdown has-megamenu&quot;&gt; &lt;a class=&quot;nav-link dropdown-toggle&quot; href=&quot;#&quot; data-bs-toggle=&quot;dropdown&quot;&gt;Solutions &amp;amp; services&lt;/a&gt;
&lt;div class=&quot;dropdown-menu megamenu&quot; role=&quot;menu&quot;&gt;
&lt;div class=&quot;row g-3&quot;&gt;
&lt;div class=&quot;col-md-6 col-12&quot;&gt;
&lt;div class=&quot;col-megamenu&quot;&gt;
&lt;h6 class=&quot;title&quot;&gt;Solutions &amp;amp; services&lt;/h6&gt;
&lt;ul class=&quot;list-unstyled&quot;&gt;
&lt;li class=&quot;dropend&quot;&gt; &lt;a href=&quot;#&quot; class=&quot;dropdown-item dropdown-toggle&quot; data-bs-toggle=&quot;dropdown&quot; aria-haspopup=&quot;true&quot; data-bs-auto-close=&quot;true&quot; aria-expanded=&quot;false&quot;&gt;Leasing solutions&lt;/a&gt;
&lt;ul class=&quot;dropdown-menu no-border&quot;&gt;
&lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Transfer my fleet&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Start a new fleet&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Electric vehicles&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Next lease&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Trucks, plant &amp;amp; equipment&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Used vehicles&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li class=&quot;dropend&quot;&gt; &lt;a href=&quot;#&quot; class=&quot;dropdown-item dropdown-toggle&quot; data-bs-toggle=&quot;dropdown&quot; aria-haspopup=&quot;true&quot; data-bs-auto-close=&quot;true&quot; aria-expanded=&quot;false&quot;&gt;Fleet management services&lt;/a&gt;
&lt;ul class=&quot;dropdown-menu no-border&quot;&gt;
&lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Accident management&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Acquisition and disposals&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Driver safety&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Fleet card&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Hire vehicles&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Infringement management&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Insurance&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Maintenance&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; PoolCar sharing platform&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Registration&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Roadside assistance&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Telematics&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Toll management&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li class=&quot;dropend&quot;&gt; &lt;a href=&quot;#&quot; class=&quot;dropdown-item dropdown-toggle&quot; data-bs-toggle=&quot;dropdown&quot; aria-haspopup=&quot;true&quot; data-bs-auto-close=&quot;true&quot; aria-expanded=&quot;false&quot;&gt;Fleet optimisation&lt;/a&gt;
&lt;ul class=&quot;dropdown-menu no-border&quot;&gt;
&lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Corporate financing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Leasing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Sales and lease back&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Strategic consulting&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Technology integration&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;!-- col-megamenu.// --&gt; 
&lt;/div&gt;
&lt;!-- end col-3 --&gt; 
&lt;/div&gt;
&lt;!-- end row --&gt; 
&lt;/div&gt;
&lt;!-- dropdown-mega-menu.// --&gt; 
&lt;/li&gt;
&lt;li class=&quot;nav-item&quot;&gt; &lt;a class=&quot;nav-link&quot; href=&quot;#&quot;&gt;Driver Support&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;nav-item&quot;&gt; &lt;a class=&quot;nav-link&quot; href=&quot;#&quot;&gt;About&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;nav-item&quot;&gt; &lt;a class=&quot;nav-link&quot; href=&quot;#&quot;&gt;News&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;nav-item&quot;&gt; &lt;a class=&quot;nav-link&quot; href=&quot;#&quot;&gt;Resources&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;nav-item&quot;&gt; &lt;a class=&quot;btn btn-bd-primary&quot; href=&quot;#&quot; role=&quot;button&quot;&gt;Contact us&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;!-- end --&gt; 
&lt;/div&gt;
&lt;/div&gt;
&lt;!-- end test --&gt; 

</div>
</nav>


You can see the full code I have at:
https://www.codeply.com/p/YfWQ2HX73q
I am stuck, and really would like the help to get this menu working beautifully.
</details>
# 答案1
**得分**: 0
使用 `for` 循环来遍历具有 `className=dropdown-menu` 的元素,并相应地更改它的 `className`。
例如:
```javascript
Array.from(document.querySelectorAll(".dropdown-menu")).forEach((e) => {
e.className == "hide"
? e.className == "show"
: e.className == "hide";
})
英文:

use for loop to iterate through the elements with className=dropdown-menu and change it className accordingly

eg:

   Array.from(document.querySelectorAll(&quot;.dropdown-menu&quot;)).forEach((e)=&gt;{
e.className==&quot;hide&quot;
?e.className==&quot;show&quot;
:e.className==&quot;hide&quot;
})

答案2

得分: 0

将所有子菜单放入列表中,然后添加点击监听器,当点击时,关闭列表中除被点击的之外的所有子菜单:

const subMenus = [];

document.querySelectorAll('.dropend .dropdown-toggle').forEach(function(menu, index) {
    
    subMenus.push(new bootstrap.Dropdown(menu));

    menu.addEventListener('click', function(e) {

        for (let i = 0; i < subMenus.length; i++) {
            if (i !== index) subMenus[i].hide();
        }

    });

});

工作示例:

<!-- begin snippet: js hide: false console: true babel: false -->
<!-- language: lang-js -->
document.addEventListener("DOMContentLoaded", function() {

    /////// Prevent closing from click inside dropdown
    document.querySelectorAll('.dropdown-menu').forEach(function(element) {
        element.addEventListener('click', function(e) {
            e.stopPropagation();
        });
    })

    const subMenus = [];

    document.querySelectorAll('.dropend .dropdown-toggle').forEach(function(menu, index) {
        
        subMenus.push(new bootstrap.Dropdown(menu));

        menu.addEventListener('click', function(e) {

            for (let i = 0; i < subMenus.length; i++) {
                if (i !== index) subMenus[i].hide();
            }

        });

    });

    // make it as accordion for smaller screens
    if (window.innerWidth < 992) {

        // close all inner dropdowns when parent is closed
        document.querySelectorAll('.navbar .dropdown').forEach(function(everydropdown){
            everydropdown.addEventListener('hidden.bs.dropdown', function () {
                // after dropdown is hidden, then find all submenus
                this.querySelectorAll('.submenu').forEach(function(everysubmenu){
                    // hide every submenu as well
                    everysubmenu.style.display = 'none';
                });
            })
        });
        
        document.querySelectorAll('.dropdown-menu a').forEach(function(element){
            element.addEventListener('click', function (e) {

                let nextEl = this.nextElementSibling;
                if(nextEl && nextEl.classList.contains('submenu')) {	
                    // prevent opening link if link needs to open dropdown
                    e.preventDefault();
                    console.log(nextEl);
                    if(nextEl.style.display == 'block'){
                        nextEl.style.display = 'none';
                    } else {
                        nextEl.style.display = 'block';
                    }

                }
            });
        })
    }
    // end if innerWidth
    
    
});
<!-- language: lang-css -->
html {
    overflow-x: hidden;
}

body {
    padding-right: 0 !important;
    font-family: "Cera-PRO-Regular", Arial, sans-serif;
    font-weight: 300 !important;
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
    margin-top: 70px;
}

.navbar-collapse.in {
    max-height: 100%;
}

.no-border {
    border: none;
}

.menu-two li a.nav-link {
    color: white !important;
}

.navbar-collapse {
    padding-top: 70px;
    padding-left: 40px;
    padding-right: 40px;
}

.dropdown-menu li a {
    text-decoration: none;
    padding-left: 15px;
    font-weight: 400;
    color: #000;
}

.dropdown-menu {
    --bs-dropdown-padding-y: 0;
}

@media (min-width: 768px) {
    body {
        margin-top: 40px;
    }
    .navbar-collapse {
        float: left;
        width: 100%;
        clear: both;
    }
    .navbar-inverse {
        border-top: 50px solid pink;
    }
}

.second-nav {
    margin-top: 40px;
}

li#search.nav-item {
    margin-left: 0;
}

.navbar {
    height: auto;
}

div.search-box.nav-link {
    margin-top: 30px;
}

nav ul,
.dropdown-menu li a {
    font-size: 0.875rem;
    font-weight: 700;
    padding: var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);
    display: block;
}

.text-red {
    color: #D6001C;
}

.text-ltred {
    color: #FF435C;
}

.text-white {
    color: #fff;
}

.dropend .dropdown-menu[data-bs-popper] {
    background-color: lightgrey;
}

@media (min-width: 576px) {
    .navbar {
        height: auto;
    }
    li#search.nav-item {
        margin-left: 0;
    }
    div.search-box.nav-link {
        margin-top: 30px;
    }
    .navbar-expand-md .navbar-nav .nav-link {
        margin-right: 0.2rem;
        margin-left: 0.2rem;
        padding-right: 0;
        padding-left: 0;
    }
}

@media (min-width: 768px) {
    .navbar {
        height: 40px;
    }
    .navbar-brand img {
       

<details>
<summary>英文:</summary>

Get all submenus into a list, and then add click listener, and on click, close all submenus in the list, but the one that is clicked:

     const subMenus = [];

    document.querySelectorAll(&#39;.dropend .dropdown-toggle&#39;).forEach(function(menu, index) {
        
        subMenus.push(new bootstrap.Dropdown(menu));

        menu.addEventListener(&#39;click&#39;, function(e) {

            for (let i = 0; i &lt; subMenus.length; i++) {
                if (i !== index) subMenus[i].hide();
            }

        });

    });


working snippet:

&lt;!-- begin snippet: js hide: false console: true babel: false --&gt;

&lt;!-- language: lang-js --&gt;

    document.addEventListener(&quot;DOMContentLoaded&quot;, function() {


        /////// Prevent closing from click inside dropdown
        document.querySelectorAll(&#39;.dropdown-menu&#39;).forEach(function(element) {
            element.addEventListener(&#39;click&#39;, function(e) {
                e.stopPropagation();
            });
        })


        const subMenus = [];


        document.querySelectorAll(&#39;.dropend .dropdown-toggle&#39;).forEach(function(menu, index) {
            
            subMenus.push(new bootstrap.Dropdown(menu));

            menu.addEventListener(&#39;click&#39;, function(e) {

                for (let i = 0; i &lt; subMenus.length; i++) {
                    if (i !== index) subMenus[i].hide();
                }

            });

        });



    		// make it as accordion for smaller screens
    		if (window.innerWidth &lt; 992) {

    			// close all inner dropdowns when parent is closed
    			document.querySelectorAll(&#39;.navbar .dropdown&#39;).forEach(function(everydropdown){
    				everydropdown.addEventListener(&#39;hidden.bs.dropdown&#39;, function () {
    					// after dropdown is hidden, then find all submenus
    					  this.querySelectorAll(&#39;.submenu&#39;).forEach(function(everysubmenu){
    					  	// hide every submenu as well
    					  	everysubmenu.style.display = &#39;none&#39;;
    					  });
    				})
    			});
    			
    			document.querySelectorAll(&#39;.dropdown-menu a&#39;).forEach(function(element){
    				element.addEventListener(&#39;click&#39;, function (e) {
    		
    				  	let nextEl = this.nextElementSibling;
    				  	if(nextEl &amp;&amp; nextEl.classList.contains(&#39;submenu&#39;)) {	
    				  		// prevent opening link if link needs to open dropdown
    				  		e.preventDefault();
    				  		console.log(nextEl);
    				  		if(nextEl.style.display == &#39;block&#39;){
    				  			nextEl.style.display = &#39;none&#39;;
    				  		} else {
    				  			nextEl.style.display = &#39;block&#39;;
    				  		}

    				  	}
    				});
    			})
    		}
    		// end if innerWidth
        
        
    });

&lt;!-- language: lang-css --&gt;

    html {
        overflow-x: hidden;
    }

    body {
        padding-right: 0 !important;
        font-family: &quot;Cera-PRO-Regular&quot;, Arial, sans-serif;
        font-weight: 300 !important;
        font-size: 1rem;
        line-height: 1.6;
        overflow-x: hidden;
        margin-top: 70px;
    }

    .navbar-collapse.in {
        max-height: 100%;
    }

    .no-border {
        border: none;
    }

    .menu-two li a.nav-link {
        color: white !important;
    }

    .navbar-collapse {
        padding-top: 70px;
        padding-left: 40px;
        padding-right: 40px;
    }

    .dropdown-menu li a {
        text-decoration: none;
        padding-left: 15px;
        font-weight: 400;
        color: #000;
    }

    .dropdown-menu {
        --bs-dropdown-padding-y: 0;
    }

    @media (min-width: 768px) {
        body {
            margin-top: 40px;
            /*130px;*/
        }
        .navbar-collapse {
            float: left;
            width: 100%;
            clear: both;
        }
        .navbar-inverse {
            border-top: 50px solid pink;
        }
        /*  .navbar-nav:nth-child(2) {
        margin-top: 20px; 
        clear: both;
      }
      .navbar-nav:nth-child(1) {
        margin-top: -20px; 
          clear: both;
      } */
    }

    .second-nav {
        margin-top: 40px;
    }

    li#search.nav-item {
        margin-left: 0;
    }

    .navbar {
        height: auto;
    }

    div.search-box.nav-link {
        margin-top: 30px;
    }

    nav ul,
    .dropdown-menu li a {
        font-size: 0.875rem;
        font-weight: 700;
        padding: var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);
        display: block;
    }

    .text-red {
        color: #D6001C;
    }

    .text-ltred {
        color: #FF435C;
    }

    .text-white {
        color: #fff;
    }

    .dropend .dropdown-menu[data-bs-popper] {
        background-color: lightgrey;
    }

    @media (min-width: 576px) {
        .navbar {
            height: auto;
        }
        li#search.nav-item {
            margin-left: 0;
        }
        div.search-box.nav-link {
            margin-top: 30px;
        }
        .navbar-expand-md .navbar-nav .nav-link {
            margin-right: 0.2rem;
            margin-left: 0.2rem;
            padding-right: 0;
            padding-left: 0;
        }
    }

    @media (min-width: 768px) {
        .navbar {
            height: 40px;
        }
        .navbar-brand img {
            left: 50px;
            top: 0;
            width: 160px;
        }
        .menu-one {
            margin-top: 50px;
        }
        .menu-two {
            margin-top: 10px;
        }
        .menu-two li a.nav-link {
            color: black !important;
        }
        .navbar-collapse {
            padding-top: 0px;
            padding-left: 0px;
            padding-right: 0px;
        }
        div.search-box.nav-link {
            margin-top: 0;
        }
        nav ul,
        .dropdown-menu li a {
            font-size: 0.75rem;
            font-weight: 700;
        }
        li#search.nav-item {
            margin-left: -1rem;
            /**was -3**/
        }
        .navbar-expand-md .navbar-nav .nav-link {
            margin-right: 0.6rem;
            margin-left: 0.6rem;
            padding-right: 0;
            padding-left: 0;
        }
        .dropend .dropdown-menu[data-bs-popper] {
            background-color: #fff;
        }
    }

    @media (min-width: 992px) {
        nav ul,
        .dropdown-menu li a {
            font-size: 1rem;
            font-weight: 700;
        }
        .navbar-expand-md .navbar-nav .nav-link {
            margin-right: 1rem;
            margin-left: 1rem;
            padding-right: 0;
            padding-left: 0;
        }
    }

    .navbar-nav {
        --bs-nav-link-padding-x: 0;
        --bs-nav-link-padding-y: 0.5rem;
        --bs-nav-link-font-weight: ;
        --bs-nav-link-color: #fff;
        --bs-nav-link-hover-color: #fff;
    }

    .btn-bd-primary {
        --bs-btn-color: #fff !important;
        --bs-btn-bg: #D6001C;
        --bs-btn-border-color: #D6001C;
        --bs-btn-hover-color: #D6001C !important;
        --bs-btn-hover-bg: #2E3138;
        --bs-btn-hover-border-color: #2E3138;
        --bs-btn-focus-shadow-rgb: 49, 132, 253;
        --bs-btn-active-color: #fff;
        --bs-btn-active-bg: #D6001C;
        --bs-btn-active-border-color: #D6001C;
        --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
        --bs-btn-disabled-color: #fff;
        --bs-btn-disabled-bg: #D6001C;
        --bs-btn-disabled-border-color: #D6001C;
        --bs-btn-border-radius: 1.5rem;
    }


    /**Start - Search box**/


    /* div */

    .search-box {
        position: relative;
        /*was absolute*/
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #F6F6F6;
        /* was #cd595a;*/
        height: 30px;
        /*was 40px*/
        border-radius: 50px;
        padding: 0;
        /*was 10px*/
    }


    /* input */

    .search-input {
        outline: none;
        border: none;
        background: none;
        width: 0;
        padding: 0;
        color: #2E3138;
        float: left;
        font-size: 14px;
        transition: .3s;
        line-height: 30px;
    }

    .search-input::placeholder {
        color: #dbc5b0;
    }


    /* icon */

    .search-btn {
        color: #fff;
        float: right;
        width: 30px;
        height: 30px;
        border-radius: 50px;
        background: #222223;
        /* was #cd595a;*/
        display: flex;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        transition: .3s;
    }

    .search-input:focus,
    .search-input:not(:placeholder-shown) {
        width: 120px;
        /*was 240px*/
        padding: 0 6px;
    }

    .search-box:hover &gt; .search-input {
        width: 120px;
        padding: 0 6px;
    }

    .search-box:hover &gt; .search-btn,
    .search-input:focus + .search-btn,
    .search-input:not(:placeholder-shown) + .search-btn {
        background: #222223;
        color: #fff;
    }


    /**End - Search box**/


    /**/

    .dropdown-menu li {
        position: relative;
    }

    .dropdown-menu .dropdown-submenu {
        display: none;
        position: absolute;
        left: 100%;
        top: -7px;
    }

    .dropdown-menu .dropdown-submenu-left {
        right: 100%;
        left: auto;
    }

    .dropdown-menu &gt; li:hover &gt; .dropdown-submenu {
        display: block;
    }


    /**/


    /*megamenu*/

    .navbar .megamenu {
        padding: 1rem;
    }

    .navbar .megamenu {
        margin-top: 0px;
    }


    /* ============ desktop view ============ was 992px */

    @media all and (min-width: 767px) {
        .navbar .has-megamenu {
            position: static !important;
        }
        .navbar .megamenu {
            left: 0;
            right: 0;
            width: 100%;
            margin-top: 70px;
        }
    }

&lt;!-- language: lang-html --&gt;

    &lt;link href=&quot;https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css&quot; rel=&quot;stylesheet&quot; integrity=&quot;sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC&quot; crossorigin=&quot;anonymous&quot;&gt;
    &lt;script src=&quot;https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js&quot; integrity=&quot;sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
    &lt;style&gt;
    html {
        overflow-x: hidden;
    }

    body {
        padding-right: 0 !important;
        font-family: &quot;Cera-PRO-Regular&quot;, Arial, sans-serif;
        font-weight: 300 !important;
        font-size: 1rem;
        line-height: 1.6;
        overflow-x: hidden;
        margin-top: 70px;
    }

    .navbar-collapse.in {
        max-height: 100%;
    }

    .no-border {
        border: none;
    }

    .menu-two li a.nav-link {
        color: white !important;
    }

    .navbar-collapse {
        padding-top: 70px;
        padding-left: 40px;
        padding-right: 40px;
    }

    .dropdown-menu li a {
        text-decoration: none;
        padding-left: 15px;
        font-weight: 400;
        color: #000;
    }

    .dropdown-menu {
        --bs-dropdown-padding-y: 0;
    }

    @media (min-width: 768px) {
        body {
            margin-top: 40px;
            /*130px;*/
        }
        .navbar-collapse {
            float: left;
            width: 100%;
            clear: both;
        }
        .navbar-inverse {
            border-top: 50px solid pink;
        }
        /*  .navbar-nav:nth-child(2) {
        margin-top: 20px; 
        clear: both;
      }
      .navbar-nav:nth-child(1) {
        margin-top: -20px; 
          clear: both;
      } */
    }

    .second-nav {
        margin-top: 40px;
    }

    li#search.nav-item {
        margin-left: 0;
    }

    .navbar {
        height: auto;
    }

    div.search-box.nav-link {
        margin-top: 30px;
    }

    nav ul,
    .dropdown-menu li a {
        font-size: 0.875rem;
        font-weight: 700;
        padding: var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);
        display: block;
    }

    .text-red {
        color: #D6001C;
    }

    .text-ltred {
        color: #FF435C;
    }

    .text-white {
        color: #fff;
    }

    .dropend .dropdown-menu[data-bs-popper] {
        background-color: lightgrey;
    }

    @media (min-width: 576px) {
        .navbar {
            height: auto;
        }
        li#search.nav-item {
            margin-left: 0;
        }
        div.search-box.nav-link {
            margin-top: 30px;
        }
        .navbar-expand-md .navbar-nav .nav-link {
            margin-right: 0.2rem;
            margin-left: 0.2rem;
            padding-right: 0;
            padding-left: 0;
        }
    }

    @media (min-width: 768px) {
        .navbar {
            height: 40px;
        }
        .navbar-brand img {
            left: 50px;
            top: 0;
            width: 160px;
        }
        .menu-one {
            margin-top: 50px;
        }
        .menu-two {
            margin-top: 10px;
        }
        .menu-two li a.nav-link {
            color: black !important;
        }
        .navbar-collapse {
            padding-top: 0px;
            padding-left: 0px;
            padding-right: 0px;
        }
        div.search-box.nav-link {
            margin-top: 0;
        }
        nav ul,
        .dropdown-menu li a {
            font-size: 0.75rem;
            font-weight: 700;
        }
        li#search.nav-item {
            margin-left: -1rem;
            /**was -3**/
        }
        .navbar-expand-md .navbar-nav .nav-link {
            margin-right: 0.6rem;
            margin-left: 0.6rem;
            padding-right: 0;
            padding-left: 0;
        }
        .dropend .dropdown-menu[data-bs-popper] {
            background-color: #fff;
        }
    }

    @media (min-width: 992px) {
        nav ul,
        .dropdown-menu li a {
            font-size: 1rem;
            font-weight: 700;
        }
        .navbar-expand-md .navbar-nav .nav-link {
            margin-right: 1rem;
            margin-left: 1rem;
            padding-right: 0;
            padding-left: 0;
        }
    }

    .navbar-nav {
        --bs-nav-link-padding-x: 0;
        --bs-nav-link-padding-y: 0.5rem;
        --bs-nav-link-font-weight: ;
        --bs-nav-link-color: #fff;
        --bs-nav-link-hover-color: #fff;
    }

    .btn-bd-primary {
        --bs-btn-color: #fff !important;
        --bs-btn-bg: #D6001C;
        --bs-btn-border-color: #D6001C;
        --bs-btn-hover-color: #D6001C !important;
        --bs-btn-hover-bg: #2E3138;
        --bs-btn-hover-border-color: #2E3138;
        --bs-btn-focus-shadow-rgb: 49, 132, 253;
        --bs-btn-active-color: #fff;
        --bs-btn-active-bg: #D6001C;
        --bs-btn-active-border-color: #D6001C;
        --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
        --bs-btn-disabled-color: #fff;
        --bs-btn-disabled-bg: #D6001C;
        --bs-btn-disabled-border-color: #D6001C;
        --bs-btn-border-radius: 1.5rem;
    }


    /**Start - Search box**/


    /* div */

    .search-box {
        position: relative;
        /*was absolute*/
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #F6F6F6;
        /* was #cd595a;*/
        height: 30px;
        /*was 40px*/
        border-radius: 50px;
        padding: 0;
        /*was 10px*/
    }


    /* input */

    .search-input {
        outline: none;
        border: none;
        background: none;
        width: 0;
        padding: 0;
        color: #2E3138;
        float: left;
        font-size: 14px;
        transition: .3s;
        line-height: 30px;
    }

    .search-input::placeholder {
        color: #dbc5b0;
    }


    /* icon */

    .search-btn {
        color: #fff;
        float: right;
        width: 30px;
        height: 30px;
        border-radius: 50px;
        background: #222223;
        /* was #cd595a;*/
        display: flex;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        transition: .3s;
    }

    .search-input:focus,
    .search-input:not(:placeholder-shown) {
        width: 120px;
        /*was 240px*/
        padding: 0 6px;
    }

    .search-box:hover &gt; .search-input {
        width: 120px;
        padding: 0 6px;
    }

    .search-box:hover &gt; .search-btn,
    .search-input:focus + .search-btn,
    .search-input:not(:placeholder-shown) + .search-btn {
        background: #222223;
        color: #fff;
    }


    /**End - Search box**/


    /**/

    .dropdown-menu li {
        position: relative;
    }

    .dropdown-menu .dropdown-submenu {
        display: none;
        position: absolute;
        left: 100%;
        top: -7px;
    }

    .dropdown-menu .dropdown-submenu-left {
        right: 100%;
        left: auto;
    }

    .dropdown-menu &gt; li:hover &gt; .dropdown-submenu {
        display: block;
    }


    /**/


    /*megamenu*/

    .navbar .megamenu {
        padding: 1rem;
    }

    .navbar .megamenu {
        margin-top: 0px;
    }


    /* ============ desktop view ============ was 992px */

    @media all and (min-width: 767px) {
        .navbar .has-megamenu {
            position: static !important;
        }
        .navbar .megamenu {
            left: 0;
            right: 0;
            width: 100%;
            margin-top: 70px;
        }
    }
    &lt;/style&gt;
    &lt;nav class=&quot;navbar navbar-expand-md navbar-dark fixed-top bg-dark&quot;&gt;
        &lt;div class=&quot;container-fluid&quot;&gt; &lt;a class=&quot;navbar-brand&quot; href=&quot;#&quot;&gt; LOGO &lt;/a&gt;
            &lt;button class=&quot;navbar-toggler&quot; type=&quot;button&quot; data-bs-toggle=&quot;collapse&quot; data-bs-target=&quot;#navbarCollapse&quot; aria-controls=&quot;navbarCollapse&quot; aria-expanded=&quot;false&quot; aria-label=&quot;Toggle navigation&quot;&gt; &lt;span class=&quot;navbar-toggler-icon&quot;&gt;&lt;/span&gt; &lt;/button&gt;
            &lt;!-- start test --&gt;
            &lt;div class=&quot;row navbar-collapse&quot; id=&quot;navbarCollapse&quot;&gt;
                &lt;div class=&quot;col-md-12 order-last menu-one&quot;&gt;
                    &lt;!-- start--&gt;
                    &lt;ul class=&quot;navbar-nav ms-auto mb-2 mb-md-0 nav navbar-right justify-content-end&quot;&gt;
                        &lt;hr class=&quot;white d-block d-md-none&quot;&gt;
                        &lt;li class=&quot;nav-item&quot;&gt; &lt;a class=&quot;nav-link active&quot; aria-current=&quot;page&quot; href=&quot;#&quot;&gt;login &lt;/a&gt; &lt;/li&gt;
                        &lt;li class=&quot;nav-item&quot;&gt; &lt;a class=&quot;nav-link&quot; href=&quot;#&quot;&gt;support &lt;span class=&quot;text-ltred&quot;&gt;1300 000 123&lt;/span&gt;&lt;/a&gt; &lt;/li&gt;
                        &lt;li class=&quot;nav-item dropdown&quot;&gt; &lt;a class=&quot;nav-link dropdown-toggle&quot; href=&quot;#&quot; role=&quot;button&quot; data-bs-toggle=&quot;dropdown&quot; aria-expanded=&quot;false&quot;&gt;  Global sites &lt;/a&gt;
                            &lt;ul class=&quot;dropdown-menu dropdown-menu-end&quot;&gt;
                                &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;#&quot;&gt;United States / Canada&lt;/a&gt;&lt;/li&gt;
                                &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;#&quot;&gt;New Zealand&lt;/a&gt;&lt;/li&gt;
                            &lt;/ul&gt;
                        &lt;/li&gt;
                        &lt;li class=&quot;nav-item&quot; id=&quot;search&quot;&gt;
                            &lt;div class=&quot;search-box nav-link&quot;&gt;
                                &lt;input type=&quot;text&quot; class=&quot;search-input&quot; placeholder=&quot;Search&quot;&gt;
                                &lt;a class=&quot;search-btn&quot; href=&quot;#&quot;&gt; ? &lt;/a&gt; &lt;/div&gt;
                        &lt;/li&gt;
                    &lt;/ul&gt;
                    &lt;!-- end --&gt;
                &lt;/div&gt;
                &lt;div class=&quot;col-md-12 order-md-last menu-two&quot;&gt;
                    &lt;!-- start--&gt;
                    &lt;ul class=&quot;navbar-nav ms-auto mb-2 mb-md-0 nav navbar-right justify-content-end&quot;&gt;
                        &lt;li class=&quot;nav-item dropdown has-megamenu&quot;&gt; &lt;a class=&quot;nav-link dropdown-toggle&quot; href=&quot;#&quot; data-bs-toggle=&quot;dropdown&quot;&gt;Solutions &amp;amp; services&lt;/a&gt;
                            &lt;div class=&quot;dropdown-menu megamenu&quot; role=&quot;menu&quot;&gt;
                                &lt;div class=&quot;row g-3&quot;&gt;
                                    &lt;div class=&quot;col-md-6 col-12&quot;&gt;
                                        &lt;div class=&quot;col-megamenu&quot;&gt;
                                            &lt;h6 class=&quot;title&quot;&gt;Solutions &amp;amp; services&lt;/h6&gt;
                                            &lt;ul class=&quot;list-unstyled&quot;&gt;
                                                &lt;li class=&quot;dropend&quot;&gt; &lt;a href=&quot;#&quot; class=&quot;dropdown-item dropdown-toggle&quot; data-bs-toggle=&quot;dropdown&quot; aria-haspopup=&quot;true&quot; data-bs-auto-close=&quot;true&quot; aria-expanded=&quot;false&quot;&gt;Leasing solutions&lt;/a&gt;
                                                    &lt;ul class=&quot;dropdown-menu no-border&quot;&gt;
                                                        &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Transfer my fleet&lt;/a&gt;&lt;/li&gt;
                                                        &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Start a new fleet&lt;/a&gt;&lt;/li&gt;
                                                        &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Electric vehicles&lt;/a&gt;&lt;/li&gt;
                                                        &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Next lease&lt;/a&gt;&lt;/li&gt;
                                                        &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Trucks, plant &amp;amp; equipment&lt;/a&gt;&lt;/li&gt;
                                                        &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Used vehicles&lt;/a&gt;&lt;/li&gt;
                                                    &lt;/ul&gt;
                                                &lt;/li&gt;
                                                &lt;li class=&quot;dropend&quot;&gt; &lt;a href=&quot;#&quot; class=&quot;dropdown-item dropdown-toggle&quot; data-bs-toggle=&quot;dropdown&quot; aria-haspopup=&quot;true&quot; data-bs-auto-close=&quot;true&quot; aria-expanded=&quot;false&quot;&gt;Fleet management services&lt;/a&gt;
                                                    &lt;ul class=&quot;dropdown-menu no-border&quot;&gt;
                                                        &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Accident management&lt;/a&gt;&lt;/li&gt;
                                                        &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Acquisition and disposals&lt;/a&gt;&lt;/li&gt;
                                                        &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Driver safety&lt;/a&gt;&lt;/li&gt;
                                                        &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Fleet card&lt;/a&gt;&lt;/li&gt;
                                                        &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Hire vehicles&lt;/a&gt;&lt;/li&gt;
                                                        &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Infringement management&lt;/a&gt;&lt;/li&gt;
                                                        &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Insurance&lt;/a&gt;&lt;/li&gt;
                                                        &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Maintenance&lt;/a&gt;&lt;/li&gt;
                                                        &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; PoolCar sharing platform&lt;/a&gt;&lt;/li&gt;
                                                        &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Registration&lt;/a&gt;&lt;/li&gt;
                                                        &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Roadside assistance&lt;/a&gt;&lt;/li&gt;
                                                        &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Telematics&lt;/a&gt;&lt;/li&gt;
                                                        &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Toll management&lt;/a&gt;&lt;/li&gt;
                                                    &lt;/ul&gt;
                                                &lt;/li&gt;
                                                &lt;li class=&quot;dropend&quot;&gt; &lt;a href=&quot;#&quot; class=&quot;dropdown-item dropdown-toggle&quot; data-bs-toggle=&quot;dropdown&quot; aria-haspopup=&quot;true&quot; data-bs-auto-close=&quot;true&quot; aria-expanded=&quot;false&quot;&gt;Fleet optimisation&lt;/a&gt;
                                                    &lt;ul class=&quot;dropdown-menu no-border&quot;&gt;
                                                        &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Corporate financing&lt;/a&gt;&lt;/li&gt;
                                                        &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Leasing&lt;/a&gt;&lt;/li&gt;
                                                        &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Sales and lease back&lt;/a&gt;&lt;/li&gt;
                                                        &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Strategic consulting&lt;/a&gt;&lt;/li&gt;
                                                        &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;&quot;&gt; Technology integration&lt;/a&gt;&lt;/li&gt;
                                                    &lt;/ul&gt;
                                                &lt;/li&gt;
                                            &lt;/ul&gt;
                                        &lt;/div&gt;
                                        &lt;!-- col-megamenu.// --&gt;
                                    &lt;/div&gt;
                                    &lt;!-- end col-3 --&gt;
                                &lt;/div&gt;
                                &lt;!-- end row --&gt;
                            &lt;/div&gt;
                            &lt;!-- dropdown-mega-menu.// --&gt;
                        &lt;/li&gt;
                        &lt;li class=&quot;nav-item&quot;&gt; &lt;a class=&quot;nav-link&quot; href=&quot;#&quot;&gt;Driver Support&lt;/a&gt;&lt;/li&gt;
                        &lt;li class=&quot;nav-item&quot;&gt; &lt;a class=&quot;nav-link&quot; href=&quot;#&quot;&gt;About&lt;/a&gt;&lt;/li&gt;
                        &lt;li class=&quot;nav-item&quot;&gt; &lt;a class=&quot;nav-link&quot; href=&quot;#&quot;&gt;News&lt;/a&gt;&lt;/li&gt;
                        &lt;li class=&quot;nav-item&quot;&gt; &lt;a class=&quot;nav-link&quot; href=&quot;#&quot;&gt;Resources&lt;/a&gt;&lt;/li&gt;
                        &lt;li class=&quot;nav-item&quot;&gt; &lt;a class=&quot;btn btn-bd-primary&quot; href=&quot;#&quot; role=&quot;button&quot;&gt;Contact us&lt;/a&gt;&lt;/li&gt;
                    &lt;/ul&gt;
                    &lt;!-- end --&gt;
                &lt;/div&gt;
            &lt;/div&gt;
            &lt;!-- end test --&gt;
        &lt;/div&gt;
    &lt;/nav&gt;

&lt;!-- end snippet --&gt;



</details>



huangapple
  • 本文由 发表于 2023年4月13日 18:31:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/76004404.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定