jQuery Effect show()メソッド
例
非表示の<p>要素をすべて表示します。
$("button").click(function(){
$("p").show();
});
定義と使用法
show()メソッドは、選択された非表示の要素を表示します。
注: show()は、jQueryメソッドで非表示になっている要素とCSSのdisplay:noneで機能します(ただし、visibility:hiddenでは機能しません)。
ヒント:要素を非表示にするには、hide()メソッドを確認してください。
構文
$(selector).show(speed,easing,callback)
Parameter | Description |
---|---|
speed | Optional. Specifies the speed of the show effect. Default value is 400 milliseconds Possible values:
|
easing | Optional. Specifies the speed of the element in different points of the animation. Default value is "swing" Possible values:
|
callback | Optional. A function to be executed after the show() method is completed
To learn more about callback, visit our jQuery Callback chapter |
自分で試してみてください-例
の使用要素を非表示/表示するときに速度パラメーターを使用する方法。
の使用要素を非表示/表示するときにコールバックパラメーターを使用する方法。