怎样安装Dreamweaver的jquery扩展,我们通常会用dreamweaver这个网页设计软件来编写网页前台代码,在编写代码时会经常出现下拉的菜单供我们选择,为我们编写代码节省了很多的时间。这样......
2023-03-17 342 JQUERY DREAMWEAVER
jQuery汽车品牌按字母分类锚点导航
准备好需要用到的图标。
新建html文档。
书写hmtl代码。
div class="brand_wrap mt10 clearfix">
div class="brand_left">
div class="brand_head">品牌/div>
div class="brand_nav">
div class="brand_side">
div class="numA-Z"> a href="#" class="active">A/a> 良巨a href="#">B/a> a href="#">C/a> a href="#">D/a> a href="#">F/a> a href="#">G/a> a href="#">H/a> a href="#">J/a> a href="#">K/a> a href="#">L/a> a href="#">M/a> a href="#">N/a> a href="#">O/a> a href="#">Q/a> a href="#">R/a> a href="#">S/a> a href="#">T/a> a href="#">W/a> a href="#">X/a> a href="#">Y/a> a href="#">Z/a> /div>
/div>
div class="brand_col">
div class="brand_list">
ul class="list_cont">
li class="name">A/li>
冲况艳li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li class="a1">
ul>
li class="a2">a href="#">一汽大众/a>/li>
li class="menu_li">a href="#">奥迪Q3/a>/li>
li class="menu_li">a href="#">奥迪Q3/a>/li>
li class="menu_li">a href="#">奥迪Q3/a>/li>
li class="menu_li menu_no">a href="#">奥迪Q3/a>/li>
li class="a2">a href="#">一汽大众/a>/li>
li class="menu_li">a href="#">奥迪Q3/a>/li>
li class="menu_li">a href="#">奥迪Q3/a>/li>
li class="menu_li">a href="#">奥迪Q3/a>/li>
li class="menu_li menu_no">a href="#">奥迪Q3/a>/li>
/ul>
/li>
毙互li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li class="a1">
ul>
li class="a2">a href="#">一汽大众/a>/li>
li class="menu_li">a href="#">奥迪Q3/a>/li>
li class="menu_li">a href="#">奥迪Q3/a>/li>
li class="menu_li">a href="#">奥迪Q3/a>/li>
li class="menu_li menu_no">a href="#">奥迪Q3/a>/li>
li class="a2">a href="#">一汽大众/a>/li>
li class="menu_li">a href="#">奥迪Q3/a>/li>
li class="menu_li">a href="#">奥迪Q3/a>/li>
li class="menu_li">a href="#">奥迪Q3/a>/li>
li class="menu_li menu_no">a href="#">奥迪Q3/a>/li>
/ul>
/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li class="a1">
ul>
li class="a2">a href="#">一汽大众/a>/li>
li class="menu_li">a href="#">奥迪Q3/a>/li>
li class="menu_li">a href="#">奥迪Q3/a>/li>
li class="menu_li">a href="#">奥迪Q3/a>/li>
li class="menu_li menu_no">a href="#">奥迪Q3/a>/li>
li class="a2">a href="#">一汽大众/a>/li>
li class="menu_li">a href="#">奥迪Q3/a>/li>
li class="menu_li">a href="#">奥迪Q3/a>/li>
li class="menu_li">a href="#">奥迪Q3/a>/li>
li class="menu_li menu_no">a href="#">奥迪Q3/a>/li>
/ul>
/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li class="name">B/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li class="name">C/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li class="name">D/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li class="name">F/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li class="name">G/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li class="name">H/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li class="name">J/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li class="name">K/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li class="name">L/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li class="name">M/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li class="name">N/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li class="name">O/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li class="name">Q/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li class="name">R/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li class="name">S/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li class="name">T/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li class="name">W/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li class="name">X/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li class="name">Y/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li class="name">Z/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
li>a href="#">span class="sign">img src="images/audi.png">/span>奥迪/a>/li>
/ul>
/div>
/div>
/div>
/div>
/div>
书写css代码。
.brand_col { width: 188px; margin: 0 0 0 37px; }
.brand_col .brand_list { width: 188px;height:600px; margin: 0; display: block; overflow-y: scroll; }
.brand_col .list_cont li { display: block; border-bottom: 1px solid #e6e6e6; height: 31px; line-height: 31px; }
.brand_col .list_cont li a { display: block;}
.brand_col .list_cont li a:hover { color: #3697db; text-decoration: none; background-color:#eff2f5; }
.brand_col .list_cont .sign { width: 31px; height: 31px; float: left; display: inline; margin: 0 7px;}
.brand_col .list_cont .name { height: 23px; background: #eff2f5; line-height: 22px; padding-left: 10px;}
.brand_col .list_cont .a2 { padding-left: 28px; height: 24px; line-height: 24px; }
.brand_col .list_cont .menu_li { padding-left: 46px; height: 24px; line-height: 24px; }
.brand_col .list_cont .menu_li a { width: 93px; height: 18px; display: inline-block; line-height: 18px; padding: 0 2px; }
.brand_col .list_cont .menu_li a:hover { background: #3697db; color: #FFF; text-decoration: none; }
.brand_col .list_cont .a1 { height: auto; padding-left: 0; display:none }
.brand_col .list_cont .a1 ul { padding:0; margin: 8px 0; background: url("../images/line05.png") repeat-y 10px top }
.brand_col .list_cont .a1 li { border-bottom: 0; }
.brand_col .list_cont .a2 { background: url("../images/line01.png") no-repeat;}
.brand_col .list_cont .a2 a:hover { background-color: #FFF;}
.brand_col .list_cont .menu_li { line-height: 20px; height: 21px; background: url("../images/line03.png") no-repeat 32px top;}
.brand_col .list_cont .menu_no { background: url("../images/line06.png") no-repeat 32px bottom;}
/*bread_nav*/
.bread_nav { display: block; height: 20px; width: 980px; margin: 10px auto 0 auto; }
.bread_nav .nav_l { float: left; font: 14px/20px "Microsoft YaHei"; color: #838383; }
.bread_nav .nav_l a { color: #3697db; }
.bread_nav .nav_l em { padding: 0 5px; font-family: "SimSun"; }
书写并添加js代码。
script src="js/select-car.js">/script>
script src="js/jquery.min.js">/script>
代码整体结构。
查看效果。
以上方法由办公区教程网编辑摘抄自百度经验可供大家参考!
标签: JQUERY
相关文章
怎样安装Dreamweaver的jquery扩展,我们通常会用dreamweaver这个网页设计软件来编写网页前台代码,在编写代码时会经常出现下拉的菜单供我们选择,为我们编写代码节省了很多的时间。这样......
2023-03-17 342 JQUERY DREAMWEAVER
jQuery MiniUI 快速入门,前段时间由于工作的原因接触到MiiUI。感觉MiiUI很强大,使用起来也很舒服。下面我就带领大家快速的使用MiiUI。MiiUI-专业WeUI控件库它能缩短开发时......
2023-03-17 330 JQUERY
怎么使用JQuery Mobile开发移动网站,现在越来越多的人用网站来做手机a,这样的好处是,可以做一个网站,基本上可以做到多个平台adroid,io,w,都可以使用。这里使用JQueryMoile......
2023-03-17 374 JQUERY