collapse

UK[kəˈlæps] US[kəˈlæps]

vi.Collapse; collapse; fold; (especially after work and fatigue) sit down

vt.To collapse; to collapse; to disintegrate

n.Collapse; (physical) weakness

Bootstrap collapse style syntax

Function: Hide content.

Bootstrap collapse style example

<!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>Simple Collapsible</h2>
	<button type="button" class="btn btn-info" data-toggle="collapse" data-target="#demo">简单的折叠</button>
	<div id="demo" class="collapse">
		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>
Run instance »

Click the "Run instance" button to view the online instance