API jQuery UI - Landing efek (Drop Effect)
kategori
pemakaian
Keterangan: Landing efek (Drop Effect) melalui satu arah dari slide memudar untuk menyembunyikan atau menampilkan elemen cahaya.
drop
参数 | 类型 | 描述 | 默认值 |
---|---|---|---|
direction | String | 隐藏元素时元素降落的方向,显示元素时元素出现的方向。 可能的值:up、down、left、right。 |
"left" |
contoh
Efek penggunaan lahan (Blind Effect) beralih div.
<! DOCTYPE html> <Html lang = "en"> <Head> <Meta charset = "utf-8"> <Title> efek Landing (Drop Effect) Demo </ title> <Link rel = "stylesheet" href = "// code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css"> <Gaya> #toggle { width: 100px; height: 100px; background: # ccc; } </ Style> <Script src = "// code.jquery.com/jquery-1.10.2.js"> </ script> <Script src = "// code.jquery.com/ui/1.10.4/jquery-ui.js"> </ script> </ Kepala> <Body> <P> Klik di mana saja untuk beralih. </ P> <Div id = "beralih"> </ div> <Script> $ (Dokumen) .Klik (function () { $ ( "#toggle") .toggle ( "Drop"); }); </ Script> </ Body> </ Html>