jquery实现带背景轮播轮换的顶部二级菜单固定导航效果代码
代码语言:html
所属分类:图片放大
代码描述:jquery+SuperSlide实现带背景轮播轮换大图的顶部二级菜单固定导航效果代码,滚动一下菜单会滚动在顶部。
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<html> <head> <meta charset="UTF-8"> <style> html,body { color: #333; margin: 0; height: 100%; font-family: "Myriad Set Pro","Helvetica Neue",Helvetica,Arial,Verdana,sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-weight: normal; } * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } a { text-decoration: none; color: #000; } img { border: 0; } body { background: #fff; color: #666; } html, body, div, dl, dt, dd, ol, ul, li, h1, h2, h3, h4, h5, h6, p, blockquote, pre, button, fieldset, form, input, legend, textarea, th, td { margin: 0; padding: 0; } a { text-decoration: none; color: #08acee; } button { outline: 0; } img { border: 0; } button,input,optgroup,select,textarea { margin: 0; font: inherit; color: inherit; outline: none; } li { list-style: none; } a { color: #666; } a:hover { color: #eee; } .clearfix::after { clear: both; content: "."; display: block; height: 0; visibility: hidden; } .clearfix { } /* 必要布局样式css */ .aui-header-top { position: fixed; top: 0; width: 100%; z-index: 1; background-color: rgba(0,0,0,0.3); background-color: #000; transition: all 0.6s ease-out; } .aui-header-title { width: 1200px; margin: 0 auto; } .aui-header-title .aui-title { float: left; margin-left: 10px; } .aui-header-title a { font-size: 12px; color: #fff; opacity: 0.4; line-height: 28px; } .aui-header-title .navList { float: right; margin-right: 10px; } .aui-header-title .navList li:first-child { margin-left: 0; } .aui-header-title .navList li { float: left; margin-left: 66px; } .aui-header-title a { font-size: 12px; color: #fff; opacity: 0.4; line-height: 28px; } .aui-header-title .navList li a { font-size: 12px; } .aui-header-nav { position: fixed; top: 0; width: 100%; background-color: transparent; border-bottom: 1px solid transparent; z-index: 999; transition: all 0.45s ease-in-out; } .aui-header-nav.moveDown { top: 29px; transition: all 0.45s ease-in-out; } .aui-header-nav .wrapper { position: relative; width: 1180px; /* padding: 0 10px; */ height: 60px; margin: 0 auto; } .aui-header-nav .aui-logo { width: 130px; height: 35px; margin-left:10px; background: url(//repo.bfw.wiki/bfwrepo/icon/60b2c443baaca.png) no-repeat; background-size: 80px auto; } .aui-header-nav .wrapper .aui-logo { position: relative; top: 19px; } .aui-header-nav.solid .aui-logo { background: url(//repo.bfw.wiki/bfwrepo/icon/60ecf359eb0c5.png) no-repeat; background-size: 80px auto; } .aui-header-nav .aui-logo h1 { text-indent: -99999px; } .aui-header-nav .wrapper .aui-top-nav { position: absolute; right: 200px; top: 0; } .aui-top-nav .menu { -webkit-user-select: none; user-select: none; margin-top: 4px; } .aui-top-nav .menu >li { float: left; margin-left: 20px; height: 55px; } .aui-top-nav .menu >li >a { display: inline-block; vertical-align: baseline; zoom: 1; padding: 0 10px; height: 55px; font-size: 16px; line-height: 55px; color: #fff; border-bottom: 2px solid transparent; border-bottom: 0 ; background-color: rgba(0,0,0,0); } .aui-header-nav.solid .aui-top-nav .menu >li >a { color: #383838; } .aui-top-nav .menu >li .panel { position: fixed; top: 88px; left: 0; right: 0; height: 120px; padding-top: 0; filter: alpha(opacity = 0) ; opacity: 0; transition-delay: 0.1s; transition-duration: 0.3s; z-index: -1; visibility: hidden; visibility: visible; display: none; background-color: #fff; text-align: center; border-bottom: 1px solid #e4e4e4; } .aui-top-nav .menu >li .panel.product { heigh.........完整代码请登录后点击上方下载按钮下载查看
网友评论0