Jquery小知识点
一、未来元素:live
可以给还没创建出来的元素附上事件
ps:$(".div").live("click",function(){})

二、颜色渐变
用到Jquery封装好的jquery.color.js

三、弹窗制作的一些知识点
获取浏览器高度:var llbo = window.innerHeight;
获取页面高度:var bo = $("body").outerHeight();
换行:word-wrap:break-word

四、全部的东西选不中
* {
-moz-user-select: -moz-none;
-moz-user-select: none;
-o-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
五、index很好用
index() 方法返回指定元素相对于其他指定元素的 index 位置。
这些元素可通过 jQuery 选择器或 DOM 元素来指定。

posted on 2016-08-11 20:13  斐雪  阅读(94)  评论(0编辑  收藏  举报