jQuery UI API - ผลกระทบการขยายตัว (พัฟผล)
หมวดหมู่
การใช้
รายละเอียด: โดยการปรับองค์ประกอบในขณะที่ซ่อนองค์ประกอบในการสร้างผลการขยายตัว (พัฟผล)
puff
参数 | 类型 | 描述 | 默认值 |
---|---|---|---|
percent | Number | 要缩放到的百分比。 | 150 |
ตัวอย่าง
ผลกระทบการขยายตัวของการใช้งาน (พัฟผล) เปลี่ยน div
<! Doctype html> <html lang = "th"> <head> <Meta charset = "UTF-8"> <title> ผลกระทบการขยายตัว (พัฟผล) สาธิต </ title> <link rel = "สไตล์ชีต" href = "// code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css"> <style> #toggle { ความกว้าง: 100px; ความสูง: 100px; พื้นหลัง: # 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> </ head> <body> <p> คลิกที่ใดก็ได้ที่จะเปลี่ยน </ p> <div id = "สลับ"> </ div> <script> $ (เอกสาร) จำนวนคลิก (ฟังก์ชั่น () { $ ( "#toggle") .toggle ( "พัฟ"); }); </ script> </ body> </ html>