04 2014 档案
seajs 使用 jquery插件
摘要:define(function(require,exports,moudles){ return function(jquery){ (function($) { $.fn.pri= function() { alert... 阅读全文
posted @ 2014-04-28 17:22 ziye.cc 阅读(209) 评论(0) 推荐(0)
css hack
摘要:所有浏览器 通用 height: 100px; IE6 专用 _height: 100px; IE7 专用 *+height: 100px;IE6、IE7 共用 *height: 100px;IE7、FF 共用 height: 100px !important;IE7,IE8:width:137px... 阅读全文
posted @ 2014-04-22 16:26 ziye.cc
IE7的overflow失效的解决方法
摘要:IE7的position:relative bug今天遇到了一个相对定位(position:relaitve)引起的IE7中overflow:hidden失效的bug,特此记录!解决方法很简单,给父层(div#scroll)设置position:relative就OK了。XHTML结构:洗浴健身餐饮... 阅读全文
posted @ 2014-04-16 15:10 ziye.cc
Js中 关于top、clientTop、scrollTop、offsetTop的用法
摘要:网页可见区域宽:document.body.clientWidth;网页可见区域高:document.body.clientHeight;网页可见区域宽:document.body.offsetWidth(包括边线的宽);网页可见区域高:document.body.offsetHeight(包括边线的宽);网页正文全文宽:document.body.scrollWidth;网页正文全文高:document.body.scrollHeight;网页被卷去的高:document.body.scrollTop;网页被卷去的左:document.body.scrollLeft;网页正文部分上:wind 阅读全文
posted @ 2014-04-04 10:35 ziye.cc