随身笔记
随身笔记

前端资源

前端资源

根据不同的设备手机、pc端跳转到相应的地址--uaredirect.js

百度提供了一个简单插件uaredirect.js判断手机还是电脑pc端跳转到相应的页面。 简单来说如果是手机访问了某个地址,根据uaredirect.js的判断是手机的话就自动跳转到专门为手机浏览的页面,否则就不需要跳转 //推荐放在css、JS前面。先判断设备在跳转 <script…

   573   2016-08-13   去围观

判断鼠标移入移出元素时的方向

鼠标 移入 移出 方向 兼容IE9,但是效果不好   mouse_direction https://github.com/liuyunzhuge/blog/tree/master/mouse_direction      

   571   2016-08-12   去围观

js倒计时兼容IE6

兼容性:E 6, IE 7, IE 8, FF 3, Safari 4, Opera 9, Chrome 4 倒计时只需要设置结束时间即可。 可以同时多设置几个 例如:要在2017年1月10号11时00分00秒过期,页面直接就会显示剩余时间倒计时 targetDate: { 'day': 10, 'month': 1, 'year': 2017, '…

   686   2016-08-11   去围观

基于jquery手机手势封装

手机 百度 touch 禁用长按文本被选中 *{ -webkit-touch-callout:none; -moz-user-select: none; /*火狐*/ -webkit-user-select: none; /*webkit浏览器*/ -ms-user-select: none; /*IE10*/ -khtml-user-select: none; /*早期浏览器*/ user-select: none;…

   687   2016-08-06   去围观

first-child与last-child获取不到元素原因

html代码如下 <a href="#" class="button"><</a><a href="#" class="button">></a><div id="f">F</div><div id="s">S</div><div id="t">T</div> css代码如下 .button:last-child {     b…

   1,053   2016-08-04   去围观
加载更多