会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Western Journey
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
14
下一页
2014年9月5日
【html5移动web开发】关于移动端开发
摘要: 1.Google Analytics分析工具的使用:注册后页面中加入Google Analytics的代码,可以分析出有哪些设备在访问网站或者哪些页面访问量比较大、2.Modernizr 可以检测浏览器对html5元素的支持性。可以判断是否支持localstorage等等3.html5元素在旧版本的...
阅读全文
posted @ 2014-09-05 18:21 Western Journey
阅读(2633)
评论(0)
推荐(0)
2014年9月2日
【javascript】ajax请求 编码问题导致的ie浏览器在输入中文文字后没有内容,而chrome正常搜到文字
摘要: chrome :IE:var matchVal = encodeURIComponent($('.inp_match').val()); // 此时ie下就可以正常搜索到了/order/edit.html?act=select&sname=%E5%9B%9B如果前端和后端页面编码不一样的时候可以jQ...
阅读全文
posted @ 2014-09-02 11:48 Western Journey
阅读(287)
评论(0)
推荐(0)
2014年8月26日
【javascript】javascript实现background-size:cover的功能
摘要:
阅读全文
posted @ 2014-08-26 16:46 Western Journey
阅读(776)
评论(0)
推荐(0)
2014年8月19日
test--构造函数写法
摘要: var obj = document.getElementById('setbg');var smooth = new ImageSmooth(obj);//smooth.fuzzy();/*背景模糊*/ function ImageSmooth(obj){ var elem,oldClass...
阅读全文
posted @ 2014-08-19 11:39 Western Journey
阅读(165)
评论(0)
推荐(0)
2014年8月18日
【移动端】关于图片的大小----怎样保证图片高清
摘要: 一、设备像素比(window.devicePixelRatio) 设备像素比= 设备上物理像素/设备独立像素(dips 布局视区的宽度) 非视网膜屏幕的iphone上,屏幕物理像素320像素,独立像素(视区宽度)也是320像素,因此,window.devicePixelRatio等于1.(chrom...
阅读全文
posted @ 2014-08-18 11:53 Western Journey
阅读(517)
评论(0)
推荐(0)
2014年8月15日
【javascript】异常错误
摘要: JS Bin //每个浏览器会报不同的错误(由错误的标签嵌套引起,需要把tbody放在table里)+| IE 6,7,8 | 意外地调用了方法或属性访问。 ...
阅读全文
posted @ 2014-08-15 11:31 Western Journey
阅读(938)
评论(0)
推荐(0)
2014年8月14日
【css3】动画transition
摘要: JS Bin //我们可以指定transition适用的属性,比如只适用于heighttransition:1s height;//源文地址:http://www.ruanyifeng.com/blog/2014/02/css_transition_and_animation.html
阅读全文
posted @ 2014-08-14 15:38 Western Journey
阅读(160)
评论(0)
推荐(0)
2014年8月8日
【javascrpt】
摘要: test1.js$(function(){})var flag=1;getOrder();//执行后flag会变成1 并输出1111function getOrder(){ flag=0; document.write('1111');}test2.js$(function(){})a...
阅读全文
posted @ 2014-08-08 15:20 Western Journey
阅读(131)
评论(0)
推荐(0)
2014年8月7日
【css】ie6下使用css sprite 滤镜做透明图片
摘要: .service{ /*position:relative;*/ height:96% !important;overflow: hidden;}.pright{ height:40px; text-align:right; margin-top:30px; padding-right:50px; ...
阅读全文
posted @ 2014-08-07 17:24 Western Journey
阅读(219)
评论(0)
推荐(0)
2014年8月6日
【css】float:left不撑满容器与opacity将子元素透明demo
摘要: Document 首页热门应用游戏短信 //浮动元素不占据空间
阅读全文
posted @ 2014-08-06 17:27 Western Journey
阅读(223)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
14
下一页
公告