jQuery UI API - effetti di esplosione (Explode Effect)
categoria
uso
Descrizione: Gli effetti di esplosione (esplodere Effect) da elementi scissionisti per nascondere o mostrare un elemento.
explode
参数 | 类型 | 描述 | 默认值 |
---|---|---|---|
pieces | Integer | 爆炸裂开的碎片数目,应该是个平方数,任何其他值被舍入到最近的平方数。 | 9 |
Esempi
Usa effetti di esplosione (Explode Effect) di commutazione di un div.
<! Html Doctype> <Html lang = "it"> <Head> <META charset = "utf-8"> <Title> effetti di esplosione (Explode Effect) Demo </ title> <Link rel = "stylesheet" href = "// code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css"> <Style> #toggle { width: 100px; altezza: 100px; sfondo: #ccc; } </ Style> <Src = "script // code.jquery.com/jquery-1.10.2.js"> </ script> <Src = "script // code.jquery.com/ui/1.10.4/jquery-ui.js"> </ script> </ Head> <Body> <P> Clicca ovunque per passare. </ P> <Div id = "Toggle"> </ div> <Script> $ (Document) .Click (function () { $ ( "#toggle") .toggle ( "Esplodere"); }); </ Script> </ Corpo> </ Html>