随笔分类 -  jQuery

摘要:在firefox下jquery的css方法不支持backgroundPositionY属性,我们可以通过如下方法解决。在使用backgroundPositionY之前调用https://raw.github.com/brandonaaron/jquery-cssHooks/master/bgpos.jsgithub项目来自:https://github.com/brandonaaron/jquery-cssHooks/blob/master/bgpos.jshttps://github.com/louisremi/jquery.backgroundXY.js/blob/master/jquer 阅读全文
posted @ 2013-11-07 15:42 华生_ 阅读(656) 评论(0) 推荐(0)
摘要:html中的placeholder属性很好用,但是不支持神奇的IE,下面是解决方法:先给出 Demo// This adds 'placeholder' to the items listed in the jQuery .support object.jQuery(function() { jQuery.support.placeholder = false; test = document.createElement('input'); if('placeholder' in test) jQuery.support.placeholder 阅读全文
posted @ 2013-07-17 15:36 华生_ 阅读(357) 评论(0) 推荐(0)
摘要:学习了一个效果,当滚动条滚动到页面底部时,弹出一个元素Demohtml:1请向下滚动页面↓2345close6华生_7分享一些前端的笔记_http://www.cnblogs.com/jmjweb8css:初始化,主要是把#slidebox 固定在页面的底部1#slidebox{2width:400px;height:100px;overflow:hidden;padding:10px;background-color:#fff;border-top:3pxsolid#159;position:fixed;left:0;bottom:0px;_position:absolute;margin- 阅读全文
posted @ 2013-06-27 11:07 华生_ 阅读(1402) 评论(0) 推荐(0)