类似淘宝的导航栏

效果图

html代码


 1 <div class="end_wrap">
2 <div class="end_box">
3 <ul>
4 <li class="shiling">
5 <dl>
6 <dt>
7 <h3>时令周边游</h3>
8 <p><a href="">天数</a><a href="">丽水</a><a href="">台州</a><a href="">休闲度假</a></p>
9 </dt>
10 <dd>
11 <div class="navcontent clear">
12 <div class="subitem">
13 <div class="li_dl">
14 <div class="li_dl_dt">漂流</div>
15 <div class="li_dl_dd"><em><a href="">大峡谷</a></em><em><a href="">三清山</a></em><em><a href="">千岛湖</a></em></div>
16 </div>
17 <div class="li_dl">
18 <div class="li_dl_dt">游乐园</div>
19 <div class="li_dl_dd"><em><a href="">大峡谷</a></em><em><a href="">三清山</a></em><em><a href="">千岛湖</a></em></div>
20 </div>
21 </div>
22 <div class="subitem">
23 <div class="li_dl">
24 <div class="li_dl_dt">名山明水</div>
25 <div class="li_dl_dd"><em><a href="">大峡谷2</a></em><em><a href="">三清山2</a></em><em><a href="">千岛湖2</a></em></div>
26 </div>
27 </div>
28 </div>
29 </dd>
30 </dl>
31 </li>
32 <li class="guonei">
33 <dl>
34 <dt>
35 <h3>国内风行游</h3>
36 <p><a href="">天数</a><a href="">丽水</a><a href="">台州</a><a href="">休闲度假</a></p>
37 </dt>
38 <dd>
39 2
40 </dd>
41 </dl>
42 </li>
43 <li class="guoji">
44 <dl>
45 <dt>
46 <h3>国际风尚游</h3>
47 <p><a href="">天数</a><a href="">丽水</a><a href="">台州</a><a href="">休闲度假</a></p>
48 </dt>
49 <dd>
50 3
51 </dd>
52 </dl>
53 </li>
54 <li class="gongsi">
55 <dl>
56 <dt>
57 <h3>公司游</h3>
58 <p><a href="">天数</a><a href="">丽水</a><a href="">台州</a><a href="">休闲度假</a></p>
59 </dt>
60 <dd>
61 3
62 </dd>
63 </dl>
64 </li>
65 <li class="visa">
66 <dl>
67 <dt>
68 <h3>签证</h3>
69 <p><a href="">天数</a><a href="">丽水</a><a href="">台州</a><a href="">休闲度假</a></p>
70 </dt>
71 <dd>
72 5
73 </dd>
74 </dl>
75 </li>
76
77 </ul>
78 </div>
79 </div>

js代码


1 $(function(){
2 $(‘.end_box ul li‘).each(function(){
3 $(this).hover(function() {
4 $(this).addClass(‘hover‘)
5 }, function() {
6 $(this).removeClass(‘hover‘)
7 });
8 })
9 })

css


 1 *{ margin: 0px; padding: 0px;}
2 ul,li{ list-style:none;}
3 img{ border: 0;}
4 body{font-family: "Microsoft YaHei","微软雅黑",Arial,Helvetica,sans-serif;color: #404040; font-size: 14px;}
5 .clear { clear:both; zoom:1;}
6 .clear:after {visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0;}
7 .hide{ display: none;}
8 .show{ display: block;}
9 .fl{ float: left;}
10 .fr{ float: right;}
11 .pb10{ padding-bottom: 10px;}
12 .f12{ font-size: 12px; font-family: 微软雅黑;}
13 .f14{ font-size: 14px; font-family: 微软雅黑;}
14 .site_wrap{ width: 100%;}
15 .sitenav{ float: left; width: 10%; background: #fcfcfc; padding: 10px 0;}
16 .nav_top,.nav_con{ width: 95%; margin: 0px auto;}
17 .nav_top{ margin-bottom: -1px;}
18 .nav_top ul li{ float: left; display: inline; margin-right: 3px; padding: 0 15px; height: 25px; line-height: 25px; border-radius:2px; background: #cfcfcf; color: #333; border: 1px solid #ccc; margin-left: -1px; cursor: pointer;}
19 .nav_top ul li.on{ background: #fff; color: #000; border-bottom: 1px solid #fff;}
20 .nav_con{ border: 1px solid #ccc;}
21 .navcontent{}
22 .sitecontent{ float: left; width: 90%; padding: 10px 0;}
23 .width130{ float: left; width: 130px; text-align: right; padding-right: 40px; line-height: 25px;}
24 .con_style{}
25 .con_style input[type=‘text‘]{ width: 180px; border-radius: 2px; border: 1px solid #c5c5c5; border-top: 1px solid #c4c4c4; height: 23px; line-height: 23px; padding: 0 5px;-webkit-box-shadow: 1px 1px 1px 0px rgba(0,0,0,.0) inset; box-shadow: 1px 1px 1px 0px rgba(0,0,0,.1) inset;}
26 .con_style input[type=‘button‘],.con_style button{ border-radius: 2px; border: 1px solid #afafaf; border-top: 1px solid #b0b0b0; height: 25px; line-height: 25px; padding: 0 15px; margin-left: 5px; cursor: pointer;*overflow:visible;}
27 .con_style input[type=‘checkbox‘],.con_style input[type=‘radio‘]{ position: relative; margin-right: 2px; display: inline; cursor: pointer;}
28 .con_style input[type=‘file‘]{height: 25px; line-height: 25px; }
29 .con_style select{ height: 25px; line-height: 25px; padding: 0; width: 180px; border-radius: 2px; border: 1px solid #c5c5c5; border-top: 1px solid #c4c4c4;}
30 .con_style label{ padding-right: 25px;}
31 .con_style input.width80{ width: 80px; margin-left: 5px;}
32 .search_con{ border:1px solid #ccc; padding: 15px; margin: 10px 0;}
33 .con_title{ height: 30px; line-height: 30px; color: #000; font-weight: bold;}
34 .con_con label{ display: inline-block;}
35
36 .end_wrap{ width: 80%;}
37 .end_box{ margin: 6px; height: 320px; background: #f8f6f8; margin-top: 0; position: relative; border-right: 1px solid #f8f6f8;}
38 .end_box li{ display: block; height: 62px; background-position: 20px center; background-repeat: no-repeat; border-right: 1px solid #ccc; width: 297px;}
39 .end_box li:hover {background-color: #fff;border: 1px solid #ccc;border-right: 1px solid #fff;}
40 .end_box h3{color: #f39b19; font-size: 13pt;}
41 .end_box a{margin-right: 10px; text-decoration: none; color: #404040;}
42 .end_box li dl{ padding-left: 75px; padding-top: 10px; padding-bottom: 3px; width: 223px;}
43 .end_box li dl dt{ display: block;position: relative;}
44 .end_box li dl dd{ width: 867px; border: 1px solid #ccc; height: 318px; position: absolute; z-index: 2; left: 298px; background: #fff; top: 0; display: none; border-left: 0 none; overflow-y: auto;}
45 .end_box li.hover dl dd{ display: block;}
46 .end_box .shiling{ background-image: url(../images/ico_shiling.png);}
47 .end_box .guonei{ background-image: url(../images/ico_train.png);}
48 .end_box .guoji{ background-image: url(../images/ico_plane.png);}
49 .end_box .gongsi{ background-image: url(../images/ico_men.png);}
50 .end_box .visa{ background-image: url(../images/ico_visa.png);}
51
52 .subitem { float: left; width: 385px; min-height: 65px; padding-left: 15px; z-index: 100;}
53 .subitem .li_dl { overflow: hidden; zoom: 1; padding: 5px 0; }
54 .subitem .li_dl_dt { float: left; width: 85px; line-height: 20px; text-align: left; color: #f39b19;}
55 .subitem .li_dl_dd { float: left; width: 300px; }
56 .subitem em { float: left; font-style: normal; white-space: nowrap; height: 14px; line-height: 14px; border-right: 1px solid #ccc; margin: 3px 0; padding: 0 8px; }
57 .subitem em:last-child { border: 0 none; }

类似淘宝的导航栏

时间: 2024-08-02 02:51:20

类似淘宝的导航栏的相关文章

淘宝分类导航条;纯css实现固定导航栏

效果如下: 页面如下: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <style type="t

web 模板 类似京东左侧的导航栏

? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86

ios 类似淘宝商品详情页面的效果

今天试着写ios 类似淘宝商品详情页面的效果 我用到的第三方库EGORefreshTableHeaderView下拉刷新的效果还有就是PWLoadMoreTableFooterView上拉加载更多 主要的思路在于UISCrollView两页,一页展示商品概况,另一页展示商品更多详情 首先,第一页的view包含一个UITableView,这个tableView实现PWLoadMoreTableFooterView中的delegate方法, 实现delegate代理方法的时候使用 - (void)s

求大神 &nbsp; 谁做过类似淘宝的sku商品信息组合

求大神   谁做过类似淘宝的sku商品信息组合

ASP.NET MVC关于EF Group By分组实现类似淘宝足迹功能的实现

由于项目上线要求实现类似淘宝我的足迹功能,笔者整理的实现思路如下: 1.项目用的Entity Framework框架,先取得数据,然后根据利用lambda表达式实现分组,并传入视图View(): var  query=CustomerManager.GetCustomerTrace().GroupBy(r => r.UpdateOn.Data); return View(query); 视图中传入model : @model IEnumerable<IGrouping<DateTime,

如何:使用PicturBox实现类似淘宝网站图片的局部放大功能

转载至http://xuzhihong1987.blog.163.com/blog/static/267315872011822113131823/ 概要: 本文将讲述如何使用PictureBox控件实现图片的局部放大浏览功能,效果类似淘宝网站的图片局部放大浏览,通过鼠标悬浮查看局部大图,同时扩展了鼠标滚轮放大缩小功能.本文将详细讲述实现该功能的主要思路,例子虽是在Winform的环境下实现(当时开发的系统用的是winform),但是代码实现思路在其他环境(如WPF)应该是通用的. 解决方案:

[Android]类似淘宝的数字自增自减文本

手机的支付宝每次打开都有一个数字从0到特定数字的增加或减少, 表示数值的更新. Android也提供了CountDownTimer去实现类似的效果. 要自己来实现, 原理也并不复杂,主要用Handler去定时刷新数字, 和CountDownTimer类似. 于是结合Handler和TextView即可实现. 效果图, GIF图看起来不连贯. 运行代码效果会好一些. 例子不复杂, 所以直接上代码了,提供了自增自减, 继续自增或继续自减, 和取消的接口方法. public class DecalAd

这是一个类似淘宝评分

这则代码中需要插入一个JQ文件和几张图片这里就不发出来了:在这代码中只要用户鼠标移入其中星星就会亮,并会显示打分标准,点击过后就会保持所选标准.   <!DOCTYPE html>   <html lang="en">   <head>   <meta charset="UTF-8">   <title>Document</title>   <style>   .container{

jquery--实现类似淘宝星星评分功能

-   不正之处,欢迎指正.^-^.好绕的话 贴码.html <body> <div id="div"> <ul> <li>☆</li> <li>☆</li> <li>☆</li> <li>☆</li> <li>☆</li> </ul> </div> <p id="p"><