随笔分类 -  Mobile

记录手机端的相关资料和知识点
摘要:https://github.com/nswbmw/node-wechat/blob/master/index.js 阅读全文
posted @ 2017-06-30 12:47 smght 阅读(688) 评论(0) 推荐(0) 编辑
摘要:http://biancheng.dnbcw.info/css/459090.htmlhttp://efe.baidu.com/blog/mobile-fixed-layout/ 阅读全文
posted @ 2016-01-23 13:00 smght 阅读(149) 评论(0) 推荐(0) 编辑
摘要:http://weizhifeng.net/viewports.htmlhttp://blog.wpjam.com/m/viewport-meta-tag/ 阅读全文
posted @ 2015-11-19 11:07 smght 阅读(284) 评论(0) 推荐(0) 编辑
摘要:/判断手机横竖屏状态: function hengshuping(){ if(window.orientation==180||window.orientation==0){ alert("竖屏状态!") } if(window.orientation==90||window.orientation... 阅读全文
posted @ 2015-11-16 11:12 smght 阅读(328) 评论(0) 推荐(0) 编辑
摘要:先来观察 iOS 的 User-Agent 串: iPhone 4.3.2 系统:Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_2 like Mac OS X; en-us)AppleWebKit/533.17.9 (KHTML, like Gecko) Ver... 阅读全文
posted @ 2015-11-16 10:57 smght 阅读(1941) 评论(0) 推荐(0) 编辑
摘要:转载地址:http://caibaojian.com/browser-ios-or-android.html 阅读全文
posted @ 2015-11-16 10:48 smght 阅读(726) 评论(0) 推荐(0) 编辑
摘要:以下经过本人测试成功。测试平台:三星S5830I操作系统:Android 2.3.6浏览器:UC浏览器HTML标准:HTML5测试了三个事件:touchstart、touchmove 和 touchend,并获取了触摸时触点在页面上的坐标,根据坐标进行了左右滑动、上下滑动判断。代码如下:[html]... 阅读全文
posted @ 2015-07-10 10:29 smght 阅读(271) 评论(0) 推荐(0) 编辑
摘要:$('#addbtn').on('click',function(){ $('#assist_area').show().animate({height:'170px'},300,function(){ $('#....').show(); });});选择器换成你自己的就行了 阅读全文
posted @ 2015-07-09 10:18 smght 阅读(234) 评论(0) 推荐(0) 编辑
摘要:HTML5开发助手,快速查看HTML及javascript接口文档http://www.9miao.com/thread-60966-1-1.html简洁的手机wap公司产品展示网站模板下载htmlhttp://www.9miao.com/thread-57489-1-2.htmlhtml5手指滑动... 阅读全文
posted @ 2015-06-02 15:52 smght 阅读(428) 评论(0) 推荐(0) 编辑
摘要:网页中有这么一句时,在iPhone的浏览器中将以原始大小显示,并不允许缩放。其中:width - viewport的宽度height - viewport的高度initial-scale - 初始的缩放比例minimum-scale - 允许用户缩放到的最小比例maximum-scale - 允许用... 阅读全文
posted @ 2015-05-11 14:40 smght 阅读(200) 评论(0) 推荐(0) 编辑
摘要:3.使用wtai协议进行拨打电话。在wml中可以调用设备的wtai函数来呼叫特定的电话号码。目前,越来越多的浏览器都支持这个功能,但还不是所有。代码如下所示:复制代码 代码如下:<input name="phone_no" format="*m" value="13"/> <do type="opt... 阅读全文
posted @ 2015-05-05 14:51 smght 阅读(516) 评论(0) 推荐(0) 编辑
摘要:1、js判断IOS版本号先来观察 iOS 的 User-Agent 串:iPhone 4.3.2 系统:Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_2 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, lik... 阅读全文
posted @ 2015-04-30 14:46 smght 阅读(20970) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示