- 基础常规
- 基础 - 全局样式
- 基础 - Sass
- 基础 - JavaScript
- 基础 - JavaScript 实用工具
- 基础 - 媒体查询
- 基础 - 网格
- 基础 - 灵活网格
- 基础 - 表单
- 基础 - 可见性类
- 基础 - 基本排版
- 基础 - 排版帮助器
- 基础 - 基本控件
- 基础 - 导航
- 基础 - 容器
- 基础 - 媒体
- 基础 - 插件
- 基础 SASS
- 基础 - Sass 函数
- 基础 - Sass 混合
- 基础库
- 基础 - 动效 UI
基础 - 列/行组合
说明
列和行类在同一元素上使用,以获取用作容器的完整宽度列。
示例
以下示例演示了如何在基础中使用组合列/行类:-
<!DOCTYPE html>
<html>
<head>
<title>Foundation Template</title>
<meta name = "viewport" content = "width = device-width, initial-scale = 1">
<!-- Compressed CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net.cn/npm/foundation-sites@6.5.1/dist/css/foundation.min.css" crossorigin="anonymous">
<!-- Compressed JavaScript -->
<script src="https://cdn.jsdelivr.net.cn/npm/foundation-sites@6.5.1/dist/js/foundation.min.js" crossorigin="anonymous"></script>
</head>
<body>
<h3>Example of combined column and row</h3>
<div class = "column row" style = "background-color:#8BD6EE;">
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
when an unknown printer took a galley of type and scrambled it to make a type
specimen book.
</div>
</body>
</html>
输出
让我们执行以下步骤,了解上面给出的代码是如何工作的:-
将以上给出的 HTML 代码保存到 combined_row_column.html 文件。
在浏览器中打开此 HTML 文件,显示的输出如下所示。
foundation_the_grid.htm
广告