jQuery语法实例

$(this).hide()
jQuery 的 hide() 函数,隐藏当前的 HTML 元素。
$("p").hide()
jQuery 的 hide() 函数,隐藏所有 <p> 元素。
$(".test").hide()
jQuery 的 hide() 函数,隐藏所有 class="test" 的元素。
$("#test").hide()
jQuery 的 hide() 函数,隐藏 id="test" 的元素。
 

Hiding - Sliding- Fading

jQuery fadeOut()
简单的 jQuery fadeout() 函数。
jQuery hide()
简单的 jQuery hide() 函数。
Hide explanations
如何隐藏部分文本。
Slide panel
简单的 Slide Panel 效果。
jQuery animate()
简单的 jQuery animate() 函数。
 
jQuery:1.1.1,$(this).hide()
        

test
jQuery:1.1.2,$("p").hide()
       

This is a heading

This is a paragraph.

This is another paragraph.

jQuery:1.1.3,$(".test").hide()
       

This is a heading

This is a paragraph.

This is another paragraph.

jQuery:1.1.4,$("#test").hide()
       

This is a heading

This is a paragraph.

This is another paragraph.

jQuery:1.2.1,fadeOut()
       
CLICK ME AWAY!

如果您点击上面的框,它会淡出。

jQuery:1.2.2.hide()
        

If you click on me, I will disappear.

jQuery:1.2.3,explanations
          

Island Trading

Contact: Helen Bennett

Garden House Crowther Way
London

Paris Trading

Contact: Marie Bertrand

265, Boulevard Charonne
Paris

jQuery:1.2.4,panel
              

W3School - 领先的 Web 技术教程站点

在 W3School,你可以找到你所需要的所有网站建设教程。

请点击这里

jQuery:1.2.5,animation
          

Start Animation