购物网站的简单菜单栏
来源:互联网 发布:账户到期 数据库 编辑:程序博客网 时间:2024/04/29 20:09
效果如图所示,即鼠标悬浮在左边红色部分,右边绿色部分出现,鼠标移出绿色部分,绿色消失。
代码:
<html><head><title></title><style>*{margin:0;padding:0;}ul{list-style:none;position:relative;}.first{margin:20px;}.second{position:absolute;display:none;left:100px;top:0;}.first > li{width:100px;height:20px;background-color:red;margin-bottom:10px;}.second li{width:600px;height:500px;background-color:green;}</style><script src="jquery-1.11.1.min.js"/></script> <script type="text/javascript">$(document).ready(function(){$(".first > li").hover(function(){var index=$(".first > li").index(this);$(".second").css("display","none");$(".second").eq(index).css("display","inline");},function(){$(".second").css("display","none");});});</script></head><body><ul class="first"><li>1<ul class="second"><li>11</li></ul></li><li>2<ul class="second"><li>21</li></ul></li><li>3<ul class="second"><li>31</li></ul></li><li>4<ul class="second"><li>41</li></ul></li><ul></body></html>
0 0
- 购物网站的简单菜单栏
- 购物网站中购物车的简单实现
- Java Web的一个简单购物网站
- 购物网站的形式
- 购物网站的分期付款
- 购物网站的购物车设计
- css 简单菜单栏的设置
- 简单的购物车
- 简单的购物车
- 简单的购物车
- 简单的购物车...
- 简单的购物车
- 简单的购物车
- 简单编辑器、菜单栏的简单实现
- “购物网站”的“经营要素”!!
- 合肥的购物网站初探
- 最好玩的购物网站!
- 很好的国外购物网站
- 输入一个字符串 保留大写字母和空格输出 例如输入He Is Dog 输出为H I D
- hdu Max Sum Plus Plus(动态规划+分段最大子段和)
- 帮您快速入门 TI 的 Codec Engine
- POJ1733 - Parity game - 并查集
- Median of Two Sorted Arrays Java
- 购物网站的简单菜单栏
- C/C++中调用LUA函数
- Linux下autoconf和automake使用
- 中国山脉图
- Qt 之 show,hide,setVisible,setHidden,close 等小结
- Matplotlib Tutorial
- 交换机基础
- IOS自定义View使用block实现点击事件
- 久了,梦