jquery.orion-menu实现自适应可换色顶部多级菜单栏效果代码
代码语言:html
所属分类:菜单导航
代码描述:jquery.orion-menu实现自适应可换色顶部多级菜单栏效果代码
代码标签: jquery.orion-menu 自适应 换色 顶部 多级 菜单栏
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/font-awesome.3.2.0.css">
<style>
body {
background:#fff;
margin:0;
padding:0 50px;
}
.content {
margin:50px auto;
}
.orion-menu {
margin-top:0;
z-index:99;
}
.panel {
position:absolute;
width:280px;
margin:200px 0 0 -140px;
left:50%;
z-index:1;
}
.panel a {
display:inline-block;
width:30px;
margin:0;
height:30px;
outline:none;
}
.panel a:nth-child(1) {
background:#454545;
}
.panel a:nth-child(2) {
background:#000;
}
.panel a:nth-child(3) {
background:#008C9E;
}
.panel a:nth-child(4) {
background:#036564;
}
.panel a:nth-child(5) {
background:#C92C2C;
}
.panel a:nth-child(6) {
background:#FC6B0A;
}
.panel a:nth-child(7) {
background:#AB3E5B;
}
.panel a:nth-child(8) {
background:#33454E;
}
@media only screen and (max-width:768px) {
body {
padding:10px;
}
.content {
margin:0;
}
}
</style>
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/orion-menu.css">
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery.1.11.min.js"></script>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/orion-menu.js"></script>
<script type="text/javascript">
jQuery(document).ready(function () {$().orion({speed:500 });});
</script>
</head>
<body>
<div class="content">
<ul class="orion-menu red">
<li class="active"><a href="#">Home</a></li>
<li><a href="javascript:void(0)">Services</a></li>
<li><a href="#">Real link</a>
<ul>
<li><a href="javascript:void(0)">Dropdown item</a></li>
<li><a href="javascript:void(0)"> Dropdown it.........完整代码请登录后点击上方下载按钮下载查看
网友评论0