bootstrap自适应滑动顶部导航菜单效果代码

代码语言:html

所属分类:菜单导航

代码描述:采用bootstrap编写一个自适应滑动顶部导航菜单并兼容移动设备。

代码标签: bootsrap 自适应 滑动 导航 菜单

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>bootstrap4滑动效果顶部导航菜单</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bootstrap.4.3.1.min.css">
    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.5.15.3.css">
    <style>
        @import url('https://fonts.googleapis.com/css?family=Roboto');
    
    body{
    	font-family: 'Roboto', sans-serif;
    }
    * {
    	margin: 0;
    	padding: 0;
    }
    i {
    	margin-right: 10px;
    }
    /*----------multi-level-accordian-menu------------*/
    .navbar-logo{
    	padding: 15px;
    	color: #fff;
    }
    .navbar-mainbg{
    	background-color: #5161ce;
    	padding: 0px;
    }
    #navbarSupportedContent{
    	overflow: hidden;
    	position: relative;
    }
    #navbarSupportedContent ul{
    	padding: 0px;
    	margin: 0px;
    }
    #navbarSupportedContent ul li a i{
    	margin-right: 10px;
    }
    #navbarSupportedContent li {
    	list-style-type: none;
    	float: left;
    }
    #navbarSupportedContent ul li a{
    	color: rgba(255,255,255,0.5);
        text-decoration: none;
        font-size: 15px;
        display: block;
    .........完整代码请登录后点击上方下载按钮下载查看

网友评论0