摘要: 1.给导航栏添加鼠标移上去的时候变换背景颜色的方法。1 $(function () {2 $(".nav li").mouseover(function () { 3 $(this).css("background", "url(images/nav_bg1.jpg) repeat-x");4 }).mouseout(function () {5 $(this).css("background", "url(images/nav_bg.jpg) repeat-x");6 ... 阅读全文
posted @ 2013-10-29 11:20 Suner 阅读(173) 评论(0) 推荐(0) 编辑
摘要: JQuery是JavaScript的一种封装库,它能够简化我们的开发,屏蔽浏览器之间的差异。1. $(document).ready 1 1.View Code 2.常用的两个方法。 1 View Code 3.选择器 1 View Code 4.样式操作,设置属性 1 View Code 阅读全文
posted @ 2013-10-29 09:33 Suner 阅读(186) 评论(0) 推荐(0) 编辑