摘要: 效果图动画后 html css 阅读全文
posted @ 2016-06-06 17:35 归尘2016 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 1 请实现,鼠标点击页面中的任意标签,alert该标签的名称.(注意兼容性) 2 请指出一下代码的性能问题,并经行优化。 var info="腾讯拍拍网(www.paipai.com)是腾讯旗下知名电子商务网站。"; info +="拍拍网于2005年9月12日上线发布,"; info +="200 阅读全文
posted @ 2016-06-02 17:13 归尘2016 阅读(1111) 评论(0) 推荐(0) 编辑
摘要: 1、样式属性操作 1)设置样式属性操作 ①设置单个样式: // 第一个参数表示:样式属性名称 // 第二个参数表示:样式属性值 $(selector).css(“color”, “red”); ②设置多个样式(也可以设置单个) // 参数为 {}(对象) $(selector).css({“colo 阅读全文
posted @ 2016-06-01 12:02 归尘2016 阅读(219) 评论(0) 推荐(0) 编辑
摘要: exec:对string进行正则处理,并返回匹配结果.array[0]为原字符串,array[i]为匹配在整个被搜索字符串中的位置。test:测试string是否包含有匹配结果,包含返回true,不包含返回false。match(pattern) :根据pattern进行正则匹配,如果匹配到,返回匹 阅读全文
posted @ 2016-05-30 16:34 归尘2016 阅读(1171) 评论(0) 推荐(0) 编辑
摘要: div{ -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); -ms-filter: grayscale(100%); -o-filter: grayscale(100%); filter: grayscale(100%); filter: gray; } 阅读全文
posted @ 2016-05-25 18:22 归尘2016 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 这段CSS千万不能放在*{}里面,不然会出现Input不能输入 阅读全文
posted @ 2016-05-25 14:04 归尘2016 阅读(138) 评论(0) 推荐(1) 编辑
摘要: 1.使用click会出现绑定点击区域闪一下的情况,解决:给该元素一个样式如下 2.用iphone或ipad浏览很长的网页滚动时的滑动效果很不错吧?不过如果是一个div,然后设置height:200px;overflow:auto;的话,可以滚动但是完全没有那滑动效果,很郁闷吧.不过自从用了-webk 阅读全文
posted @ 2016-05-24 18:24 归尘2016 阅读(115) 评论(0) 推荐(0) 编辑
摘要: function appsion(){ uAgent = window.navigator.userAgent; //判断苹果 var isIOS = uAgent.match(/iphone/i); //判断安卓高低版本 if(navigator.appVersion.substring(navigator.appVersion.length-6)<537 ... 阅读全文
posted @ 2016-05-19 15:38 归尘2016 阅读(480) 评论(0) 推荐(0) 编辑
摘要: (function () { var url = location.href; // replace www.test.com with your domain if ( (url.indexOf('www.test.com') != -1) && navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i) )... 阅读全文
posted @ 2016-05-17 16:18 归尘2016 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 1.input监控实时输入问题,google浏览器使用oninput,其他浏览器(IE6/7/8)使用onpropertychange onkeyup,onkeydown,onkeypress的用法:onkeyup 事件会在键盘按键被松开时发生。onkeydown 事件会在用户按下一个键盘按键时发生 阅读全文
posted @ 2016-05-12 17:25 归尘2016 阅读(1580) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style> #preloader_1{ position:absolute; } #preloader_1 span{ display:block; bott 阅读全文
posted @ 2016-05-09 14:43 归尘2016 阅读(185) 评论(0) 推荐(0) 编辑
摘要: Progress Bar 阅读全文
posted @ 2016-05-05 13:44 归尘2016 阅读(1068) 评论(0) 推荐(0) 编辑
摘要: .canvasAnim{ position: absolute; width:240px; height:240px; top:0; z-index:60; top:-20px; left:-5px; border-radius:120px; backg... 阅读全文
posted @ 2016-05-03 15:15 归尘2016 阅读(595) 评论(0) 推荐(0) 编辑
摘要: #div{ width:400px; height:400px; background:-moz-linear-gradient(top, #198bc9, rgba(255, 255, 255, 0.5)); background:-webkit-gradient(linear, 0 0, 0 bottom, from(#198bc9), to(rgba(... 阅读全文
posted @ 2016-05-03 15:12 归尘2016 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 这是一段可选文字 这是一段可选文字 阅读全文
posted @ 2016-04-26 11:34 归尘2016 阅读(182) 评论(0) 推荐(0) 编辑