基于jQuery实现水晶样式下拉导航



64 253 85



特效描述:基于jQuery实现 水晶样式 下拉导航,基于jQuery实现水晶样式下拉导航

代码结构

1. 引入CSS

<link rel="stylesheet" type="text/css" href="css/reset.css">
<link rel="stylesheet" type="text/css" href="css/blue/responsive.css">
<link rel="stylesheet" type="text/css" href="css/blue/color.css">
<link rel="stylesheet" type="text/css" href="font/titillium/stylesheet.css">
<link rel="stylesheet" type="text/css" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/font-awesome-ie7.min.css">
<link rel="stylesheet" type="text/css" href="css/blue/desktop-ie.css">

2. 引入JS

<script type="text/javascript" src="js/modernizr.custom.29473.js"></script>
<script type="text/javascript" src="js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="js/dropdown.js"></script>

3. HTML代码

<ul class="nav">
  <!-- Start Home -->
  <li id="first"><a href="#" class="label">Home<i class="icon-chevron-down"></i></a>
    <ul class="one" id="home">
      <li>
        <h3><i class="icon-user"></i>Welcome</h3>
        <p>In the past, HTML alone provided basic formatting options for text, images, tables, and other web page elements. But today, professional web designers use CSS to style their pages. In fact, the older HTML tags used to format text and other page elements have been phased out by the World Wide Web Consortium (W3C), the organization that defines Web standards, in favor of CSS.</p>
      </li>
    </ul>
  </li>
  <!-- End Home --> 
  <!-- Start About -->
  <li><a href="#" class="label">About Us<i class="icon-chevron-down"></i></a>
    <ul class="one" id="about">
      <li><img src="images/about.png" width="160" height="160" alt="image">
        <h3><i class="icon-user"></i>About Us</h3>
        <p>In the past, HTML alone provided basic formatting options for text, images, tables, and other web page elements. But today, professional web designers use CSS to style their pages. In fact, the older HTML tags used to format text and other page elements have been phased out by the World Wide Web Consortium (W3C), the organization that defines Web standards, in favor of CSS.</p>
        <h6 class="light-color"><i class="icon-quote-left"></i>Is there a way to apply styles to an element only if it’s embedded within a particular element, rather than universally? In other words, can you ask for example that italics within headlines be boldface<i class="icon-quote-right"></i></h6>
      </li>
    </ul>
  </li>
  <!-- End About --> 
  <!-- Start Links -->
  <li> <a href="#" class="label">Links<i class="icon-chevron-down"></i></a>
    <ul class="one" id="links">
      <li>
        <div id="link-1" class="link-block">
          <h5><i class="icon-laptop"></i>Links 1</h5>
          <ul>
            <li><a href="#"><i class="icon-angle-right"></i> Buttons</a></li>
            <li><a href="#"><i class="icon-angle-right"></i> tabs</a></li>
            <li><a href="#"><i class="icon-angle-right"></i> Menu</a></li>
            <li><a href="#"><i class="icon-angle-right"></i> Css</a></li>
            <li><a href="#"><i class="icon-angle-right"></i> Html5</a></li>
            <li><a href="#"><i class="icon-angle-right"></i> java Script</a></li>
            <li><a href="#"><i class="icon-angle-right"></i> Php</a></li>
            <li><a href="#"><i class="icon-angle-right"></i> JQuery</a></li>
            <li><a href="#"><i class="icon-angle-right"></i> Css 3</a></li>
            <li><a href="#"><i class="icon-angle-right"></i> Asp.Net</a></li>
          </ul>
        </div>
        <div id="link-2" class="link-block">
          <h5><i class="icon-camera-retro"></i>Links 2</h5>
          <ul>
            <li><a href="#"><i class="icon-angle-right"></i> Forms</a></li>
            <li><a href="#"><i class="icon-angle-right"></i> Sliders</a></li>
            <li><a href="#"><i class="icon-angle-right"></i> Navigation</a></li>
            <li><a href="#"><i class="icon-angle-right"></i> Photoshop</a></li>
            <li><a href="#"><i class="icon-angle-right"></i> Dreamweaver</a></li>
            <li><a href="#"><i class="icon-angle-right"></i> Fireworks</a></li>
            <li><a href="#"><i class="icon-angle-right"></i> Expression Web</a></li>
            <li><a href="#"><i class="icon-angle-right"></i> Corel</a></li>
            <li><a href="#"><i class="icon-angle-right"></i> Visual Studio</a></li>
            <li><a href="#"><i class="icon-angle-right"></i> Adobe</a></li>
          </ul>
        </div>
        <div id="link-3" class="link-block">
          <h5><i class="icon-desktop"></i>Links 3</h5>
          <ul>
            <li><a href="#"><i class="icon-angle-right"></i> Corel</a></li>
            <li><a href="#"><i class="icon-angle-right"></i> Visual Studio</a></li>
            <li><a href="#"><i class="icon-angle-right"></i> Adobe</a></li>
            <li><a href="#"><i class="icon-angle-right"></i> Forms</a></li>
            <li><a href="#"><i class="icon-angle-right"></i> Sliders</a></li>
            <li><a href="#"><i class="icon-angle-right"></i> Navigation</a></li>
            <li><a href="#"><i class="icon-angle-right"></i> Layouts</a></li>
            <li><a href="#"><i class="icon-angle-right"></i> Buttons</a></li>
            <li><a href="#"><i class="icon-angle-right"></i> tabs</a></li>
            <li><a href="#"><i class="icon-angle-right"></i> Menu</a></li>
          </ul>
        </div>
      </li>
    </ul>
  </li>
  <!-- End Links --> 
  <!-- Start DropDown --> 
  <!-- Start Level 1 -->
  <li> <a href="#" class="label">DropDown<i class="icon-chevron-down"></i></a>
    <ul class="one" id="menu">
      <li><a href="#">Photoshop</a></li>
      <!-- Start Level 2 -->
      <li> <a href="#">Dreamweaver<i class="icon-chevron-right"></i><i class="icon-chevron-down"></i></a>
        <ul class="one" id="sub-menu">
          <li><a href="#">Page 1</a></li>
          <!-- Start Level 3 -->
          <li> <a href="#">Page 2<i class="icon-chevron-right"></i><i class="icon-chevron-down"></i></a>
            <ul class="one" id="sub-menu">
              <li><a href="#">Page 1</a></li>
              <li><a href="#">Page 2</a></li>
              <li><a href="#">Page 3</a></li>
              <li><a href="#">Page 4</a></li>
            </ul>
          </li>
          <!-- End Level 3 -->
          <li><a href="#">Page 3</a></li>
          <li><a href="#">Page 4</a></li>
          <li><a href="#">Page 5</a></li>
        </ul>
      </li>
      <!-- End Level 2 -->
      <li><a href="#">Fireworks</a></li>
      <li><a href="#">Adobe</a></li>
      <li><a href="#">Visual Studio</a></li>
    </ul>
  </li>
  <!-- End Level 1 --> 
  <!-- End DropDown --> 
  <!-- Start Gallery -->
  <li> <a href="#" class="label">Gallery<i class="icon-chevron-down"></i></a>
    <ul class="one" id="gallery">
      <li>
        <div class="image"><img src="images/thumb3.png">
          <p>To create web pages made up of HTML and CSS, you need nothing more than a basic text editor like Notepad (Windows) or Text Edit (Mac). But after typing a few hundred lines of HTML and CSS...</p>
          <a class="more">more...</a> </div>
        <div class="image"><img src="images/thumb3.png">
          <p>To create web pages made up of HTML and CSS, you need nothing more than a basic text editor like Notepad (Windows) or Text Edit (Mac). But after typing a few hundred lines of HTML and CSS...</p>
          <a class="more">more...</a></div>
        <div class="image"><img src="images/thumb3.png">
          <p>To create web pages made up of HTML and CSS, you need nothing more than a basic text editor like Notepad (Windows) or Text Edit (Mac). But after typing a few hundred lines of HTML and CSS...</p>
          <a class="more">more...</a></div>
      </li>
    </ul>
  </li>
  <!-- End Gallery --> 
  <!-- Start Contact -->
  <li class="right"> <a href="#" class="label">Contact<i class="icon-chevron-down"></i></a>
    <ul class="one" id="contact">
      <li>
        <p>Name<em>*</em></p>
        <input name="name" type="text" id="name" class="light-color">
        <p>E-mail<em>*</em></p>
        <input name="email" type="text" id="email" class="light-color">
        <p>Message<em>*</em></p>
        <textarea name="comment" cols="" rows="" id="comment" class="light-color"></textarea>
        <input name="send" type="button" id="send" value="Send">
        <h4 id="h4-social"></h4>
        <a href="#"><i class="icon-facebook"></i></a> <a href="#"><i class="icon-twitter"></i></a> <a href="#"><i class="icon-google-plus"></i></a> <a href="#"><i class="icon-linkedin"></i></a><a href="#"><i class="icon-pinterest"></i></a> </li>
    </ul>
  </li>
  <!-- End Contact -->
</ul>
<div style="text-align:center;clear:both"><br><br><br><br>
</div>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 瀑布流 收藏 预览 自适应页面大小 响应式区块列表布局 摇摆 烟花 清单样式 照相机 注释 下划线 结构图 鼠标悬停 条形码 弹幕 画板 朋友圈样式 红包 css绘制样式 支付 图文布局 导航切换 图片头像上传 二级导航菜单 二维码 文件上传 下拉导航菜单 地图 图片切换 文本框 竖直导航菜单 计算器 文字切换 下拉框 图标导航菜单 计时器 背景切换 复选 固定导航菜单 桌面 手风琴 单选 侧边导航菜单 跳转 选项卡自动切换 登录框 树形导航菜单 步骤 视频切换 注册框 网址导航菜单 键盘 列表切换 搜索框 导航菜单插件 签到 验证码 分享 渐隐切换 文字导航菜单 二级联动 点赞 投票 全屏切换 三级联动 雪花 切换按钮 城市选择 打印 缩放切换 value赋值 筛选 答题 按钮控制 购物车 震动 颜色选择 表单提交 全选/反选 图表 添加删除 鼠标滑过 添加标签 抽奖 密码强度验证 表情 表单验证 qq空间 头像截图 html5按钮动画 星星打分评分 按钮样式 密码修改设置 编辑器 播放器 电子杂志 排行榜 分页翻页 排序 表格隔行变色 table表格 进度条 多功能 滚动导航菜单 滑动导航菜单 浮动导航菜单 导航切换 右键菜单 收缩导航菜单 html5动画导航菜单 flash导航菜单 滚动切换 滑动选项卡切换 选项卡切换 滑动手风琴 滑动星星打分 切换按钮 form表单 导航菜单导航条 其他更多

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到