
jQuery
文章平均质量分 81
dyunlong
这个作者很懒,什么都没留下…
展开
-
offsetTop、offsetLeft、offsetWidth、offsetHeight
如果想更好的了解offsetTop、offsetLeft、offsetWidth、offsetHeight,可以参考 [url]http://www.cftea.com/c/2006/12/PCTKER6T0V62S854.asp[/url] [code="html"] Insert title here *{ margin: 0; padding: 0; ...2009-07-05 19:53:44 · 129 阅读 · 0 评论 -
document.body.scrollTop 值总为0的解决方法
原文出处:[url]http://www.cftea.com/c/2008/06/U1FSRIC247DWTK2M.asp[/url] 做页面的时候可能会用到位置固定的层,读取 document.body.scrollTop 来设置层的位置,像这样: [code="js"] window.onscroll = function () { var oFix = document.g...原创 2009-07-05 19:57:34 · 213 阅读 · 0 评论 -
Js中 关于top、clientTop、scrollTop、offsetTop等详细图例
[img] http://dyldragon.iteye.com/upload/attachment/122230/48c42c6b-1a4d-3959-ad16-51a9d472d1ee.jpg [/img](alt+p)原创 2009-07-05 20:02:22 · 140 阅读 · 0 评论 -
简单的Tab
[code="html"] Insert title here .ui-tabs {position: relative; float: left;} .ui-tabs ul {margin: 0px; padding: 0px;} .ui-tabs-nav { list-style: none; position: relative; display: inline-...2009-07-08 19:47:36 · 77 阅读 · 0 评论 -
手机号码提示
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html;原创 2011-10-17 11:20:23 · 153 阅读 · 0 评论 -
IE中createElement需要注意的一个小问题
在iframe中,创建一个元素,然后添加到父页面中在ie6,ie7中行不通,而firefox和IE8可以 如果你想在IE6,IE7中创建一个父页面元素,那么你必须使创建元素属于父页面。 在Firefox,IE8中,它允许在一个文档中创建要追加到另一个文档的元素。 所以在Firefox,IE8中,可以使用parent.document也可以使用document。 page1页面代码 <...原创 2011-10-17 11:49:10 · 539 阅读 · 0 评论 -
转载:jQuery最新1.4 版本的十五个新特性
文章出处:http://www.weboffer.cn/index.php/html/628.html 1. 传参给 jQuery(…) 之前,jQuery可以通过 attr 方法设置元素的属性,既可传属性的名和值,也可以是包含几组特定 属性名值对 的 对象。在 jQuery 1.4 中,你可以把一个参数对象作为第二个参数传给 jQuery 函数本身,同时创建HTML元素。 比方...原创 2011-10-20 11:41:35 · 163 阅读 · 0 评论