Latest web development tutorials

jQuery UI API - piegare effetti (Fold Effect)

categoria

Effetti speciali (Effetti)

uso

Descrizione: effetti (Fold Effect) da parte di elementi per nascondere o mostrare un elemento pieghevole pieghevole.

fold

参数 类型 描述 默认值
size Number 或 String 被折叠元素的尺寸。 15
horizFirst Boolean 当折叠时是否先进行水平方向的折叠。请记得,显示的时候与隐藏的时候顺序相反。 false

Esempi

Fold-effetti (Fold Effect) di commutazione di un div.

<! Html Doctype>
<Html lang = "it">
<Head>
  <META charset = "utf-8">
  <Title> effetti pieghevoli (Fold 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 ( "Fold");
});
</ Script>
 
</ Corpo>
</ Html>