jquery.abBlock实现导航瞄点定位代码
代码语言:html
所属分类:菜单导航
代码描述:jquery.abBlock实现导航瞄点定位代码
代码标签: jquery.abBlock 导航 瞄点 定位 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery-1.8.3.js"></script> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery.abBlock-v1.3.min.js"></script> </head> <body> <!--//code--> <!-- ============================== 本效果 css 开始 ============================== --> <style type="text/css"> * { margin:0; padding:0; } body { background:#f5f5f5; font-size:12px; } ul,li { list-style:none; } p { word-wrap:break-word; } img { border:0; vertical-align:middle; } a { color:#333; text-decoration:none; } a:hover { color:#1974A1; text-decoration:none; } .abBlock-debug { position:fixed; top:20%; left:50%; width:100px; line-height:20px; padding:15px; background:#212121; font-size:12px; color:#fff; } .abBlock-tit { width:100%; height:54px; background:#3dc878; } .abBlock-tit ul { width:1170px; height:54px; margin:auto; } .abBlock-tit ul li { float:left; list-style:none; width:100px; line-height:54px; text-align:center; } .abBlock-tit ul li a { font-size:16px; font-weight:500; color:#fff; text-decoration:none; display:block; } .abBlock-tit ul li a:hover, .abBlock-tit ul li a.on { color:#000; background:#fff; } .abBlock-tit-on { background:#0c91e8; } .abBlock-content { width:1170px; margin:auto; } .abBlock-content .block { margin-top:30px; } .abBlock-content .block h3 { font-size:20px; font-weight:500; line-height:200px; padding-left:30px; background:#fff; } .abBlock-content .block .area { height:800px; background:#fff; } </style> <!-- ============================== 本效果 css 结束 ============================== --> <!-- HTML代码效果开始 --> <!-- //debug 信息输出 --> <div class="abBlock-debug"></div> <!-- //主导航 --> <div class="abBlock-tit"> <ul> <li><a href="javascript:;" class="on">项目一</a></li> <li><a href="javascript:;">项目二</a></li> <li><a href="javascript:;">项目三</a></li> <li><a href="javascript:;">项目四</a></li> <li><a href="javascript:;">项目五</a></li> <li><a href="javascript:;">项目六</a></li> <li><a href="javascript:;">项目七</a></li> <li><a href="javascript:;">项目八</a></li> </ul> </div> <!-- //内容板块 --> <div class="abBlock-content"> <div class="block"><h3>项目一</h3><div class="area"></div></div> <div class="block"><h3>项目二</h3><div class="area"></div></div> <div class=&.........完整代码请登录后点击上方下载按钮下载查看
网友评论0