了解下Foundation 表格

导读 Foundation 用于开发响应式的 HTML, CSS and JavaScript 框架。Foundation 是一个易用、强大而且灵活的框架,用于构建基于任何设备上的 Web 应用。
Foundation 表格

Foundation 的 <table> 元素样式为灰色斑马条纹且包含四个边框:

Firstname Lastname Email City Age Country
John Doe [email protected] New York 35 USA
Mary Moe [email protected] Chicago 51 USA
July Dooley [email protected] San Francisco 38 USA
实例

<table>
  <thead>
    <tr> <th>Firstname</th>
      <th>Lastname</th> <th>Email</th>
    </tr>
  </thead>
  <tbody> <tr>
      <td>John</td> <td>Doe</td>
      <td>[email protected]</td> </tr>
    <tr> <td>Mary</td>
      <td>Moe</td> <td>[email protected]</td>
    </tr> <tr>
      <td>July</td> <td>Dooley</td>
      <td>[email protected]</td> </tr>
  </tbody>
</table>
响应式表格

使用 CSS 让表格支持响应式设计:在表格外添加 <div> 元素,样式为 overflow-x:hidden:

实例

<div style="overflow-x:hidden">
  <table> ...
  </table>
</div>

原文来自:https://www.runoob.com/foundation/foundation-tables.html

本文地址:https://www.linuxprobe.com/the-foundation-table.html编辑:王浩,审核员:逄增宝

Linux命令大全:https://www.linuxcool.com/

Linux系统大全:https://www.linuxdown.com/

红帽认证RHCE考试心得:https://www.rhce.net/

© 版权声明
THE END
喜欢就支持一下吧
赞赏