html5网站建设中,做网站需要学会做哪些东西,备案域名绑定网站,企业宣传网站公司吹气效果可以与show/hide/toggle一起使用。通过按比例放大元素并同时隐藏它#xff0c;可以形成粉扑效果。
Puff - 语法
selector.hide|show|toggle( puff, {arguments}, speed );
这是所有参数的描述-
model - 效果的模式。可以是显…
吹气效果可以与show/hide/toggle一起使用。通过按比例放大元素并同时隐藏它可以形成粉扑效果。
Puff - 语法
selector.hide|show|toggle( puff, {arguments}, speed );
这是所有参数的描述-
model - 效果的模式。可以是显示(show)或隐藏(hide)。默认值为hide。percent(百分比) - 要缩放的百分比。默认值为150。
Puff - 示例
以下是一个简单的示例简单说明了此效果的用法-
htmlheadtitleThe jQuery Example/titlescript typetext/javascript srchttps://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js/scriptscript typetext/javascript srchttps://ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/jquery-ui.min.js/scriptscript typetext/javascript languagejavascript$(document).ready(function() {$(#hide).click(function(){$(.target).hide( puff, { }, 2000 );});$(#show).click(function(){$(.target).show( puff, {percent:100}, 2000 );});});/scriptstylep {background-color:#bca; width:200px; border:1px solid green;}div{ width:100px; height:100px; background:red;}/style/headbodypClick on any of the buttons/pbutton idhide Hide /buttonbutton idshow Show/button div classtarget/div/body
/html
这将产生以下输出- jQuery 中的 Puff方法函数 - 无涯教程网无涯教程网提供吹气效果可以与show/hide/toggle一起使用。通过按比例放大元素并同时隐藏它可以形成...https://www.learnfk.com/jquery/effect-puff.html