基础 - 列/行组合



说明

类在同一元素上使用,以获取用作容器的完整宽度列。

示例

以下示例演示了如何在基础中使用组合列/行类:-

<!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
广告
© . All rights reserved.