摘要: :hidden匹配所有的不可见元素,input 元素的 type 属性为 "hidden" 的话也会被匹配到Matches all elements that are hidden, or input elements of type "hidden".返回值Array<Element>示例查找所有不可见的 tr 元素 HTML 代码:<table> <tr styl... 阅读全文
posted @ 2010-11-24 14:41 .雷子. 阅读(543) 评论(0) 推荐(0) 编辑
摘要: :first匹配找到的第一个元素Matches the first selected element.返回值Element示例查找表格的第一行 HTML 代码:<table> <tr><td>Header 1</td></tr> <tr><td>Value 1</td></tr> <t... 阅读全文
posted @ 2010-11-24 13:15 .雷子. 阅读(378) 评论(0) 推荐(1) 编辑
摘要: #id根据给定的ID匹配一个元素。Matches a single element with the given id attribute.返回值Element参数id (String) : 用于搜索的,通过元素的 id 属性中给定的值示例查找 ID 为"myDiv"的元素。 HTML 代码:<div id="notMe"><p>id="notMe"</p>&l... 阅读全文
posted @ 2010-11-24 09:40 .雷子. 阅读(404) 评论(0) 推荐(1) 编辑
摘要: text()取得所有匹配元素的内容。结果是由所有匹配元素包含的文本内容组合起来的文本。这个方法对HTML和XML文档都有效。Get the text contents of all matched elements.The result is a string that contains the combined text contents of all matched elements. Thi... 阅读全文
posted @ 2010-11-23 13:14 .雷子. 阅读(271) 评论(0) 推荐(0) 编辑
摘要: html()取得第一个匹配元素的html内容。这个函数不能用于XML文档。但可以用于XHTML文档。Get the html contents of the first matched element. This property is not available on XML documents (although it will work for XHTML documents).返回值Str... 阅读全文
posted @ 2010-11-23 13:11 .雷子. 阅读(170) 评论(0) 推荐(0) 编辑
摘要: addClass(class)为每个匹配的元素添加指定的类名。Adds the specified class(es) to each of the set of matched elements.返回值jQuery参数class (String) : 一个或多个要添加到元素中的CSS类名,请用空格分开示例为匹配的元素加上 'selected' 类 HTML 代码:<p>Hello&l... 阅读全文
posted @ 2010-11-23 13:10 .雷子. 阅读(195) 评论(0) 推荐(0) 编辑
摘要: attr(name)取得第一个匹配元素的属性值。通过这个方法可以方便地从第一个匹配元素中获取一个属性的值。如果元素没有相应属性,则返回 undefined 。Access a property on the first matched element. This method makes it easy to retrieve a property value from the first mat... 阅读全文
posted @ 2010-11-23 13:08 .雷子. 阅读(173) 评论(0) 推荐(0) 编辑
摘要: each()each(callback)以每一个匹配的元素作为上下文来执行一个函数。意味着,每次执行传递进来的函数时,函数中的this关键字都指向一个不同的DOM元素(每次都是一个不同的匹配元素)。而且,在每次执行函数时,都会给函数传递一个表示作为执行环境的元素在匹配的元素集合中所处位置的数字值作为参数(从零开始的整形)。 返回 'false' 将停止循环 (就像在普通的循环中使用 'break'... 阅读全文
posted @ 2010-11-23 13:04 .雷子. 阅读(357) 评论(0) 推荐(1) 编辑
摘要: 下面是CSS最常用和实用的技巧。 1.重置浏览器的字体大小 重置浏览器的默认值 ,然后重设浏览器的字体大小你可以使用雅虎的用户界面重置的CSS方案 ,如果你不想下载9MB的文件,代码如下: body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {margin:... 阅读全文
posted @ 2010-11-22 16:09 .雷子. 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 问题:怎么父元素同是relative,子元素同是absolute层,在IE中z-index值小的排在值大的上面呢,其它浏览器则正常表现,有什么hack可以解决呢?HTML code<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-tran... 阅读全文
posted @ 2010-11-18 10:52 .雷子. 阅读(576) 评论(2) 推荐(1) 编辑
摘要: 1.Asp.Net中几种相似的标记符号: < %=...%>< %#... %>< % %>< %@ %>解释及用法 答: < %#... %>: 是在绑定控件DataBind()方法执行时被执行,用于数据绑定 如: < %# Container.DataItem("tit") %> < %= %>: 在程序执行时... 阅读全文
posted @ 2010-11-17 14:56 .雷子. 阅读(356) 评论(0) 推荐(0) 编辑
投入到.net、web前端开发、继续学习!