相关疑难解决方法(0)

HTML的tbody的目的是什么?

有人tbody在表格中使用HTML的主要原因是什么?它只是为了格式化目的吗?

我使用headbody一般; 我没用过theadtbody.

html html-table

32
推荐指数
3
解决办法
2万
查看次数

html表格中的行

我正在尝试同时使用paddingborder-bottom在html中获取此表:

在此处输入图片说明

但是,为了使边框底线成为我添加的线,border-collapse: collapse;而现在又没有填充线,如何同时使用两者? 在此处输入图片说明

这是我的html代码:

<html>
<head>
<link rel="stylesheet" type="text/css" href="exe2CSS3.css">
</head>
<body>
<table>
<div>
<tr>
<th>Item</th>
<th>Manufacturer</th>
<th>Size</th>
<th>Unit Price</th>
<th>Quantity</th>
<th>Total Price</th>
</tr>
<tr class="even">
<td>Corn Flakes</td>
<td>Kellogg's</td>
<td>18 oz.</td>
<td class="center">2.50</td>
<td class="center">1</td>
<td class="center">2.50</td>
</tr>
<tr class="odd">
<td>Solid White Tuna</td>
<td>Starkist</td>
<td>5 oz</td>
<td class="center">2.79</td>
<td class="center">2</td>
<td class="center">5.58</td>
</tr>
<tr class="even">
<td>Cream of Mushroom Soup</td>
<td>Campbell's</td>
<td>10.75 oz</td>
<td class="center">1.00</td>
<td class="center">2</td>
<td class="center">2.00</td>
</tr>
<tr class="odd">
<td>2% Lowfat Milk</td> …
Run Code Online (Sandbox Code Playgroud)

html css border padding

3
推荐指数
1
解决办法
342
查看次数

标签 统计

html ×2

border ×1

css ×1

html-table ×1

padding ×1