上一页 1 ··· 6 7 8 9 10
摘要: Portfolio |DemoProfessional Portfolio |DemoWeb Designer Portfolio |DemoPhotography |DemoPhotographer Personal Page |DemoResponsive Portfolio |DemoFashion Models |DemoWedding |DemoBusiness Parallax |DemoResponsive Single Page |DemoOne Page HTML5 Portfolio |DemoCorporate Responsive Parallax |DemoBusin 阅读全文
posted @ 2014-01-08 15:11 沉默术士 阅读(299) 评论(0) 推荐(0)
摘要: 先看demo:http://liutian1937.github.io/demo/EventListen.html/*绑定事件与取消绑定*/var handleHash = {};var bind = (function() { if (window.addEventListener) { return function(el, type, fn, capture) { el.addEventListener(type, function(){ fn(); handleHash[type] =... 阅读全文
posted @ 2013-12-08 11:08 沉默术士 阅读(701) 评论(0) 推荐(0)
摘要: function isParent (obj,parentObj){ while (obj != undefined && obj != null && obj.tagName.toUpperCase() != 'BODY'){ if (obj == parentObj){ return true; } obj = obj.parentNode; } return false;}$(document).click(function(event){ alert(isParent(event.target, $... 阅读全文
posted @ 2013-12-06 16:56 沉默术士 阅读(343) 评论(0) 推荐(0)
摘要: 使用css控制页面有4种方式,分别为行内样式(内联样式)、内嵌式、链接式、导入式。行内样式(内联样式)即写在html标签中的style属性中,如内嵌样式即写在style标签中,例如链接式即为用link标签引入css文件,例如导入式即为用import引入css文件,例如@import url("test.css") 如果想用 javascript获取一个元素的样式信息,首先想到的应该是元素的style属性。但是元素的style属性仅仅代表了元素的内联样式,如果一个元素 的部分样式信息写在内联样式中,一部分写在外部的css文件中,通过style属性是不能获取到元素的完整样式信息 阅读全文
posted @ 2013-11-29 10:51 沉默术士 阅读(701) 评论(0) 推荐(0)
摘要: Untitled Document UserName: Password: 阅读全文
posted @ 2013-11-14 11:19 沉默术士 阅读(209) 评论(0) 推荐(0)
摘要: 截取字串长度 阅读全文
posted @ 2013-11-14 10:52 沉默术士 阅读(459) 评论(0) 推荐(0)
摘要: jquery在解析XML内容的时候在IE7下无法显示,是因为数据格式的问题,解决办法如下:$.ajax({ type:"POST", url:"/index/GetXml?id="+id, dataType:($.support .msie) ? "text" : "xml",//判断是否为IE浏览器,我这里用的是jquery1.9.1,如果是该版本一下的将$.support换成$.browser success:function(data){ var xml; if( typeof data == "s 阅读全文
posted @ 2013-10-21 17:33 沉默术士 阅读(427) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10