Collapse/Uncollapse Rows
优质
小牛编辑
135浏览
2023-12-01
描述 (Description)
使用媒体查询大小,将collapse和uncollapse类包含在row元素中以显示填充。
例子 (Example)
以下示例演示了在Foundation中使用Collapse/Uncollapse Rows 。 我们已经为中型媒体查询包含了折叠类,并为大型媒体查询提供了解折叠。
<!DOCTYPE html>
<html>
<head>
<title>Foundation Template</title>
<meta name = "viewport" content = "width = device-width, initial-scale = 1">
<link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/css/foundation.css">
<script src = "https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/js/foundation.min.js"></script>
<script src = "https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/js/vendor/jquery.min.js"></script>
</head>
<body>
<h2>Collapse/Uncollapse Row</h2>
<div class = "row medium-collapse large-uncollapse">
<div class = "small-6 columns" style = "background-color:#8BD6EE;">
Collapse and uncollapse row
</div>
<div class = "small-6 columns" style = "background-color:#C0B0F0;">
Collapse and uncollapse row
</div>
</div>
</body>
</html>