bootstrap自适应响应式导航菜单效果
代码语言:html
所属分类:菜单导航
代码描述:bootstrap自适应响应式导航菜单效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link type="text/css" rel="stylesheet" href="http://repo.bfw.wiki/bfwrepo/css/font-awesome-4.7.0/css/font-awesome.min.css"> <link type="text/css" rel="stylesheet" href="http://repo.bfw.wiki/bfwrepo/css/bootstrap.4.3.1.min.css"> <link type="text/css" rel="stylesheet" href="http://repo.bfw.wiki/bfwrepo/css/animate.min.css"> <style> body{ margin: 0; padding: 0; font: 300 14px/18px Roboto; } *, :after, :before { box-sizing: border-box } .clearfix:after, .clearfix:before { content: ''; display: table } .clearfix:after { clear: both; display: block } ul{ list-style:none; margin: 0; padding: 0; } a, a:hover, a.active, a:active, a:visited, a:focus{ color:#fefefe; text-decoration:none; } .content{ margin: 50px 100px 0px 100px; } .exo-menu{ width: 100%; float: left; list-style: none; position:relative; background: #23364B; } .exo-menu > li { display: inline-block;float:left;} .exo-menu > li > a{ color: #ccc; text-decoration: none; text-transform: uppercase; border-right: 1px #365670 dotted; -webkit-transition: color 0.2s linear, background 0.2s linear; -moz-transition: color 0.2s linear, background 0.2s linear; -o-transition: color 0.2s linear, background 0.2s linear; transition: color 0.2s linear, background 0.2s linear; } .exo-menu > li > a.active, .exo-menu > li > a:hover, li.drop-down ul > li > a:hover{ background:#009FE1; color:#fff; } .exo-menu i { float: left; font-size: 18px; margin-right: 6px; line-height: 20px !important; } li.drop-down, .flyout-right, .flyout-left{position:relative;} li.drop-down:before { content: "\f103"; color: #fff; font-family: FontAwesome; font-style: normal; display: inline; position: absolute; right: 6px; top: 20px; font-size: 14px; } li.drop-down>ul{ left: 0px; min-width: 230px; } .drop-down-ul{display:none;} .flyout-right>ul, .flyout-left>ul{ top: 0; min-width: 230px; display: none; border-left: 1px solid #365670; } li.drop-down>ul>li>a, .flyout-right ul>li>a , .flyout-left ul>li>a { color: #fff; display: block; padding: 20px 22px; text-decoration: none; background-color: #365670; border-bottom: 1px dotted #547787; -webkit-transition: color 0.2s linear, background 0.2s linear; -moz-transition: color 0.........完整代码请登录后点击上方下载按钮下载查看
网友评论0