collapse
English [kəlæps] Amerika [kəlæps]
vi.collapse; ; (fizikal) kelemahan
Bahasa Inggeris [ɪn] Amerika [ɪn]persiapan (cara tertentu); ) di dalam...; Popular, bergaya; (kereta, dsb.) tiba di stesen
n, orang dalam yang berkuasa;Bootstrap runtuh.dalam gaya sintaks
Fungsi: Paparkan kandungan.
Bootstrap runtuh.dalam gaya contoh
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php中文网(php.cn)</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css"> <script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script> <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <h2>简单的折叠</h2> <button type="button" class="btn btn-info" data-toggle="collapse" data-target="#demo">简单的折叠</button> <div id="demo" class="collapse in"> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. </div> </div> </body> </html>
Klik butang "Run Instance" untuk melihat contoh dalam talian