CSS表格生成器

生成带CSS样式的HTML表格

浏览器处理您的数据绝不离开浏览器

Table Style

Colors

Header Bg
Header Text
Row Bg
Row Text
Alt Row Bg
Border Color
Hover Bg

Spacing & Borders

Cell Padding12px
Border Width1px
Border Radius8px
Font Size14px

Options

Preview

NameEmailRoleStatus
John Doejohn@example.comDeveloperActive
Jane Smithjane@example.comDesignerActive
Bob Johnsonbob@example.comManagerInactive
Alice Brownalice@example.comDeveloperActive
Charlie Wilsoncharlie@example.comDesignerActive

CSS

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th {
  background-color: #f3f4f6;
  color: #111827;
  padding: 12px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid #e5e7eb;
}
.table td {
  padding: 12px;
  color: #374151;
}
.table tbody tr {
  background-color: #ffffff;
  transition: background-color 150ms ease;
}
.table tbody tr:nth-child(even) {
  background-color: #f9fafb;
}
.table tbody tr:hover {
  background-color: #f3f4f6;
}

HTML Structure

<table class="table">
  <thead>
    <tr>
      <th>Header 1</th>
      <th>Header 2</th>
      <th>Header 3</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Cell 1</td>
      <td>Cell 2</td>
      <td>Cell 3</td>
    </tr>
  </tbody>
</table>

About CSS表格生成器

生成带CSS样式的HTML表格

Use this free online css生成器 tool to work faster without installing extra software. The interface is built for quick input, clear output, and straightforward results on desktop and mobile devices.

Processing

This tool runs in your browser whenever possible, which keeps your inputs private and reduces unnecessary round-trips to the server.