09 2014 档案

摘要:百度跳转 阻止默认事件 阅读全文
posted @ 2014-09-29 16:20 唸随爱 阅读(389) 评论(0) 推荐(0)
摘要:随着3G的普及,越来越多的人使用手机上网。移动设备正超过桌面设备,成为访问互联网的最常见终端。于是,网页设计师不得不面对一个难题:如何才能在不同大小的设备上呈现同样的网页?手机的屏幕比较小,宽度通常在600像素以下;PC的屏幕宽度,一般都在1000像素以上(目前主流宽度是1366×768),有的还达... 阅读全文
posted @ 2014-09-19 14:40 唸随爱 阅读(197) 评论(0) 推荐(0)
摘要:js:$(function(){ $("ul.sub").parent().append(""); $("ul.sub ul").parent().append(""); $('#nav ul').closest('li').hover(function(){ $(this).find("span... 阅读全文
posted @ 2014-09-19 13:54 唸随爱 阅读(156) 评论(0) 推荐(0)
摘要:运行当页面的时候,执行到js会判断来自于移动端还是pc端,如果是移动端则跳转制定链接地址,,这样在手机端会有额外的不必要浪费的加载时间,,,var browser={ versions:function(){ var u = navigator.userA... 阅读全文
posted @ 2014-09-19 13:49 唸随爱 阅读(373) 评论(0) 推荐(0)
摘要:$("#addfav").click(function() { var ua = navigator.userAgent.toLowerCase(), url =location.href, sitename =document.title; if(ua.indexOf("msi... 阅读全文
posted @ 2014-09-15 19:00 唸随爱 阅读(338) 评论(0) 推荐(0)
摘要:js: html: mming无缝滚动演示001 mming无缝滚动演示002 ... 阅读全文
posted @ 2014-09-11 17:35 唸随爱 阅读(186) 评论(0) 推荐(0)
摘要:-webkit-appearance : none ; /*解决iphone safari上的圆角问题*/ 阅读全文
posted @ 2014-09-10 18:11 唸随爱 阅读(160) 评论(0) 推荐(0)
摘要:function orientation_change() { var viewport = document.querySelector('meta[name="viewport"]'); if (window.orientation == 0 || window.orientation ==... 阅读全文
posted @ 2014-09-05 14:29 唸随爱 阅读(318) 评论(0) 推荐(0)
摘要:Git的一些基本概念设置自己的用户名和邮箱gitconfig –global user.name "Your Name"gitconfig –global user.email "you@example.com"修改到提交之间有一个缓存区提交到缓存区gitadd .当前所有修改提交到缓存区,也可以单... 阅读全文
posted @ 2014-09-02 16:11 唸随爱 阅读(365) 评论(0) 推荐(0)