没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
jQuery简单实现仿京东商城的左侧菜单效果代码简单实现仿京东商城的左侧菜单效果代码
主要介绍了jQuery简单实现仿京东商城的左侧菜单效果代码,通过简单的jQuery鼠标事件及元素动态变换实现样
式动态切换功能,非常简单实用,需要的朋友可以参考下
本文实例讲述了jQuery简单实现仿京东商城的左侧菜单效果代码。分享给大家供大家参考。具体如下:
这是一款挺漂亮的左侧菜单效果,基于jQuery插件,但是还没有真正的完善,有些闪动,也希望高人指点修正。仿京东商城风
格的菜单。
运行效果截图如下:
在线演示地址如下:
http://demo.jb51.net/js/2015/jquery-f-jd-shop-left-menu-codes/
具体代码如下:
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>左侧菜单效果</title>
<script type="text/javascript" src="jquery-1.6.2.min.js"></script>
<script>
$().ready(function(){$(".testbox ul li").hover(function(){$(this).find(".boxshow").show();},function(){$(this).find(".boxshow").hide();});});
</script>
<style type="text/css">
<!--
* {
padding:0;
list-style:none;
margin:0
}
body {
background:#666;
}
.testbox {
margin-top: 10px;
margin-left: 10px;
width: 200px;
}
.testbox ul li a {
color: #FFF;
font-size: 12px;
text-decoration: none;
background-color: #333;
padding: 8px;
margin: 4px;
float: left;
border: 1px solid #FFF;
position: relative;
width: 100px;
}
.testbox ul li a:hover {
color: #000;
font-size: 12px;
text-decoration: none;
background-color: #CCC;
padding: 8px;
float: left;
position: relative;
border-top-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-style: solid;
border-bottom-style: solid;
border-left-style: solid;
border-top-color: #FFF;
border-bottom-color: #FFF;
border-left-color: #FFF;
border-right-width: 1px;
border-right-style: solid;
border-right-color: #CCC;
z-index: 2;
资源评论
weixin_38748875
- 粉丝: 10
- 资源: 951
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功