摘要: If thesrcis already set, then the event is firing in the cached case, before you even get the event handler bound. To fix this, you can loop through c... 阅读全文
posted @ 2015-06-25 11:51 Unreal World 阅读(1216) 评论(0) 推荐(0)
摘要: 在chrome中使用body滚动:$("body").animate({"scrollTop":200},600)但是在firefox中却要使用html:$("html").animate({"scrollTop":200},600)综合一下,这样就都可以滚动了(其他浏览器也没问题):$("html... 阅读全文
posted @ 2015-05-27 19:03 Unreal World 阅读(329) 评论(0) 推荐(0)
摘要: 操作iframe元素:方法一:直接选择iframe中的元素 —— $("body",$("#iframe").contents());方法二:在iframe中查找元素 —— $("#iframe").contents().find("body"); 阅读全文
posted @ 2015-05-14 11:32 Unreal World 阅读(391) 评论(0) 推荐(0)