亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

淘寶導航欄css代碼分享

  發(fā)布時間:2014-05-05 16:15:18   作者:佚名   我要評論
這篇文章主要介紹了淘寶導航欄css代碼示例,需要的朋友可以參考下

類似淘寶的導航欄

html代碼

復制代碼
代碼如下:

<div class="end_wrap">
<div class="end_box">
<ul>
<li class="shiling">
<dl>
<dt>
<h3>時令周邊游</h3>
<p><a href="">天數(shù)</a><a href="">麗水</a><a href="">臺州</a><a href="">休閑度假</a></p>
</dt>
<dd>
<div class="navcontent clear">
<div class="subitem">
<div class="li_dl">
<div class="li_dl_dt">漂流</div>
<div class="li_dl_dd"><em><a href="">大峽谷</a></em><em><a href="">三清山</a></em><em><a href="">千島湖</a></em></div>
</div>
<div class="li_dl">
<div class="li_dl_dt">游樂園</div>
<div class="li_dl_dd"><em><a href="">大峽谷</a></em><em><a href="">三清山</a></em><em><a href="">千島湖</a></em></div>
</div>
</div>
<div class="subitem">
<div class="li_dl">
<div class="li_dl_dt">名山明水</div>
<div class="li_dl_dd"><em><a href="">大峽谷2</a></em><em><a href="">三清山2</a></em><em><a href="">千島湖2</a></em></div>
</div>
</div>
</div>
</dd>
</dl>
</li>
<li class="guonei">
<dl>
<dt>
<h3>國內風行游</h3>
<p><a href="">天數(shù)</a><a href="">麗水</a><a href="">臺州</a><a href="">休閑度假</a></p>
</dt>
<dd>
2
</dd>
</dl>
</li>
<li class="guoji">
<dl>
<dt>
<h3>國際風尚游</h3>
<p><a href="">天數(shù)</a><a href="">麗水</a><a href="">臺州</a><a href="">休閑度假</a></p>
</dt>
<dd>
3
</dd>
</dl>
</li>
<li class="gongsi">
<dl>
<dt>
<h3>公司游</h3>
<p><a href="">天數(shù)</a><a href="">麗水</a><a href="">臺州</a><a href="">休閑度假</a></p>
</dt>
<dd>
3
</dd>
</dl>
</li>
<li class="visa">
<dl>
<dt>
<h3>簽證</h3>
<p><a href="">天數(shù)</a><a href="">麗水</a><a href="">臺州</a><a href="">休閑度假</a></p>
</dt>
<dd>
5
</dd>
</dl>
</li></p> <p> </ul>
</div>
</div>

js代碼

復制代碼
代碼如下:

$(function(){
$('.end_box ul li').each(function(){
$(this).hover(function() {
$(this).addClass('hover')
}, function() {
$(this).removeClass('hover')
});
})
})

css

復制代碼
代碼如下:

*{ margin: 0px; padding: 0px;}
ul,li{ list-style:none;}
img{ border: 0;}
body{font-family: "Microsoft YaHei","微軟雅黑",Arial,Helvetica,sans-serif;color: #404040; font-size: 14px;}
.clear { clear:both; zoom:1;}
.clear:after {visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0;}
.hide{ display: none;}
.show{ display: block;}
.fl{ float: left;}
.fr{ float: right;}
.pb10{ padding-bottom: 10px;}
.f12{ font-size: 12px; font-family: 微軟雅黑;}
.f14{ font-size: 14px; font-family: 微軟雅黑;}
.site_wrap{ width: 100%;}
.sitenav{ float: left; width: 10%; background: #fcfcfc; padding: 10px 0;}
.nav_top,.nav_con{ width: 95%; margin: 0px auto;}
.nav_top{ margin-bottom: -1px;}
.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;}
.nav_top ul li.on{ background: #fff; color: #000; border-bottom: 1px solid #fff;}
.nav_con{ border: 1px solid #ccc;}
.navcontent{}
.sitecontent{ float: left; width: 90%; padding: 10px 0;}
.width130{ float: left; width: 130px; text-align: right; padding-right: 40px; line-height: 25px;}
.con_style{}
.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;}
.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;}
.con_style input[type='checkbox'],.con_style input[type='radio']{ position: relative; margin-right: 2px; display: inline; cursor: pointer;}
.con_style input[type='file']{height: 25px; line-height: 25px; }
.con_style select{ height: 25px; line-height: 25px; padding: 0; width: 180px; border-radius: 2px; border: 1px solid #c5c5c5; border-top: 1px solid #c4c4c4;}
.con_style label{ padding-right: 25px;}
.con_style input.width80{ width: 80px; margin-left: 5px;}
.search_con{ border:1px solid #ccc; padding: 15px; margin: 10px 0;}
.con_title{ height: 30px; line-height: 30px; color: #000; font-weight: bold;}
.con_con label{ display: inline-block;}</p> <p>.end_wrap{ width: 80%;}
.end_box{ margin: 6px; height: 320px; background: #f8f6f8; margin-top: 0; position: relative; border-right: 1px solid #f8f6f8;}
.end_box li{ display: block; height: 62px; background-position: 20px center; background-repeat: no-repeat; border-right: 1px solid #ccc; width: 297px;}
.end_box li:hover {background-color: #fff;border: 1px solid #ccc;border-right: 1px solid #fff;}
.end_box h3{color: #f39b19; font-size: 13pt;}
.end_box a{margin-right: 10px; text-decoration: none; color: #404040;}
.end_box li dl{ padding-left: 75px; padding-top: 10px; padding-bottom: 3px; width: 223px;}
.end_box li dl dt{ display: block;position: relative;}
.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;}
.end_box li.hover dl dd{ display: block;}
.end_box .shiling{ background-image: url(../images/ico_shiling.png);}
.end_box .guonei{ background-image: url(../images/ico_train.png);}
.end_box .guoji{ background-image: url(../images/ico_plane.png);}
.end_box .gongsi{ background-image: url(../images/ico_men.png);}
.end_box .visa{ background-image: url(../images/ico_visa.png);}</p> <p>.subitem { float: left; width: 385px; min-height: 65px; padding-left: 15px; z-index: 100;}
.subitem .li_dl { overflow: hidden; zoom: 1; padding: 5px 0; }
.subitem .li_dl_dt { float: left; width: 85px; line-height: 20px; text-align: left; color: #f39b19;}
.subitem .li_dl_dd { float: left; width: 300px; }
.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; }
.subitem em:last-child { border: 0 none; }

相關文章

  • html+css+js實現(xiàn)導航欄滾動漸變效果

    這篇文章主要介紹了html+css+js實現(xiàn)導航欄滾動漸變效果,本文通過實例代碼給大家介紹的非常詳細,對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下
    2021-01-28
  • 不可思議的CSS導航欄下劃線跟隨效果

    這篇文章主要介紹了純CSS實現(xiàn)導航欄下劃線跟隨效果,本文圖文并茂實例代碼詳解,給大家介紹的非常詳細,需要的朋友參考下吧
    2019-12-09
  • html+css 實現(xiàn)簡易導航欄功能

    這篇文章主要介紹了基于html+css 實現(xiàn)簡易導航欄功能,主要就是css(級聯(lián)樣式表)對html的內容做格式化。具體內容詳情大家跟隨小編一起通過本文學習吧
    2021-04-07
  • CSS中的導航欄和下拉菜單的實現(xiàn)

    這篇文章主要介紹了CSS中的導航欄和下拉菜單的實現(xiàn)的相關資料,小編覺得挺不錯的,現(xiàn)在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧
    2018-07-18
  • 純CSS實現(xiàn)導航欄下劃線跟隨滑動效果

    這篇文章主要介紹了純CSS實現(xiàn)導航欄下劃線跟隨滑動效果,需要的朋友可以參考下
    2018-03-29
  • 使用CSS制作立體導航欄

    這篇文章主要介紹了使用CSS制作立體導航欄的相關資料,需要的朋友可以參考下
    2017-10-16
  • div+css實現(xiàn)帶箭頭的面包屑導航欄

    本文主要介紹了制作漂亮美觀的帶箭頭的面包屑導航欄的示例代碼。具有很好的參考價值。下面跟著小編一起來看下吧
    2017-04-06
  • CSS導航欄及彈窗示例代碼

    本篇文章主要介紹了CSS導航欄及彈窗示例代碼,導航欄和彈窗是在web中應用很廣泛的,非常具有實用價值,需要的朋友可以參考下。
    2017-01-10
  • 純CSS實現(xiàn)導航欄Tab切換效果

    CSS 的強大之處有的時候超乎我們的想象,Tab 切換,常規(guī)而言確實需要用到一定的腳本才能實現(xiàn)。下面看看如何使用純CSS實現(xiàn)導航欄Tab切換效果
    2016-10-13
  • CSS利用偽元素實現(xiàn)導航欄斜線分隔

    這篇文章主要介紹了CSS利用偽元素實現(xiàn)導航欄斜線分隔的相關資料
    2016-03-14

最新評論