上一页 1 ··· 8 9 10 11 12 13 14 15 下一页
  2017年5月12日
摘要: 最近解决一个 底部框 在 IOS下 被其输入法弹出层 遮挡的问题; IOS 几乎不支持 fixed属性; 解决办法 1,首先是先将底部设置为absolute;当页面加载完 再将position属性改为fixed; 2, var bfscrolltop = document.body.scrollTo 阅读全文
posted @ 2017-05-12 14:49 vsmart 阅读(718) 评论(0) 推荐(0) 编辑
  2017年4月27日
摘要: function addLoadEvent(func){ var oldOnload = window.onload; if(typeof window.onload != 'function'){ window.onload = func; }else{ window.onload = funct 阅读全文
posted @ 2017-04-27 11:46 vsmart 阅读(131) 评论(0) 推荐(0) 编辑
  2017年4月26日
摘要: direction:rtl;unicode-bidi: bidi-override; 阅读全文
posted @ 2017-04-26 16:36 vsmart 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 如何实现刷新当前页面呢?借助js你将无所不能。 1,reload 方法,该方法强迫浏览器刷新当前页面。语法:location.reload([bForceGet]) 参数: bForceGet, 可选参数, 默认为 false,从客户端缓存里取当前页。true, 则以 GET 方式,从服务端取最新的 阅读全文
posted @ 2017-04-26 09:34 vsmart 阅读(220) 评论(0) 推荐(0) 编辑
  2017年4月16日
摘要: <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>时钟canvas</title> <script> window.onload = function(){ var oc = document.getEleme 阅读全文
posted @ 2017-04-16 17:59 vsmart 阅读(183) 评论(0) 推荐(0) 编辑
  2017年4月13日
摘要: 原文:http://www.cnblogs.com/Wayou/p/jquery_plugin_tutorial.html 要说jQuery 最成功的地方,我认为是它的可扩展性吸引了众多开发者为其开发插件,从而建立起了一个生态系统。这好比大公司们争相做平台一样,得平台者得天下。苹果,微软,谷歌等巨头 阅读全文
posted @ 2017-04-13 09:12 vsmart 阅读(128) 评论(0) 推荐(0) 编辑
  2017年4月12日
摘要: <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>template</title> <script src="http://hs.3g.cnfol.com/uh/Js/PlugJs/jquery.min.js" 阅读全文
posted @ 2017-04-12 14:43 vsmart 阅读(211) 评论(0) 推荐(0) 编辑
  2017年4月11日
摘要: 滚动到底部加载的判断条件:滚动高度 + 可视高度 >= 文档高度 jQuery/Zepto写法: $(window).scrollTop() + $(window).height() >= $(document).height() 原生js写法: window.pageYOffset + windo 阅读全文
posted @ 2017-04-11 17:25 vsmart 阅读(219) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>canvas</title> <style> body{background: #000;} #c1{background: #fff;} </style> < 阅读全文
posted @ 2017-04-11 11:14 vsmart 阅读(201) 评论(0) 推荐(0) 编辑
  2017年4月10日
摘要: <!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>h5历史管理</title><script>window.onload = function(){ var odiv = document.querySelector( 阅读全文
posted @ 2017-04-10 14:29 vsmart 阅读(199) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 下一页