Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何使用css修复表中的标题行?_Html_Css - Fatal编程技术网

Html 如何使用css修复表中的标题行?

Html 如何使用css修复表中的标题行?,html,css,Html,Css,我制作了一个列中没有边框的表格,并且只在行中给出了1px边框 我使用了“border collapsed”属性,然后我给所有行的边框设置为1 px 然而,我的问题是,标题行比表中的其他部分长一点 有人知道我怎么修吗 提前谢谢 html代码: <!DOCTYPE html> <html> <title>web programming project 2</title> <link rel="stylesheet" type="text/css"

我制作了一个列中没有边框的表格,并且只在行中给出了1px边框

我使用了“border collapsed”属性,然后我给所有行的边框设置为1 px

然而,我的问题是,标题行比表中的其他部分长一点

有人知道我怎么修吗

提前谢谢

html代码:

<!DOCTYPE html>
<html>
<title>web programming project 2</title>
<link rel="stylesheet" type="text/css" href="exe2CSS1.css">
<body>


<table class=outlined>
<tr id=headline>
<th class=side>Item</th>
<th class=side>Manufacturer</th>
<th class=side>Size</th>
<th class=center>Unit Price</th>
<th class=center>Quantity</th>
<th class=center>Total Price</th>
</tr>

<tr  class=firstCol>
<td class=side>Corn Flakes</td>
<td class=side>Kellogg's</td>
<td class=side>18 0z</td>
<td class=center>2.5</td>
<td class=center>1</td>
<td class=center>2.5</td>
</tr>


<tr class=secondCol>
<td class=side>Solid White Tuna</td>
<td class=side>Starkist</td>
<td class=side>5 oz</td>
<td class=center>2.79</td>
<td class=center>2</td>
<td class=center>5.58</td>
</tr>


</table>

</body>
</html>

您缺少属性值周围的引号,并且在“总价”的第一行缺少一个收盘价(您有一个

<tr id="headline">
    <th class="side">Item</th>
    <th class="side">Manufacturer</th>
    <th class="side">Size</th>
    <th class="center">Unit Price</th>
    <th class="center">Quantity</th>
    <th class="center">Total Price</th>
</tr>

项目
制造商
大小
单价
量
总价

您缺少属性值周围的引号,并且您缺少了“总价”第一行的收盘价(您有一个

<tr id="headline">
    <th class="side">Item</th>
    <th class="side">Manufacturer</th>
    <th class="side">Size</th>
    <th class="center">Unit Price</th>
    <th class="center">Quantity</th>
    <th class="center">Total Price</th>
</tr>

项目
制造商
大小
单价
量
总价

您缺少属性值周围的引号,并且您缺少了“总价”第一行的收盘价(您有一个

<tr id="headline">
    <th class="side">Item</th>
    <th class="side">Manufacturer</th>
    <th class="side">Size</th>
    <th class="center">Unit Price</th>
    <th class="center">Quantity</th>
    <th class="center">Total Price</th>
</tr>

项目
制造商
大小
单价
量
总价

您缺少属性值周围的引号,并且您缺少了“总价”第一行的收盘价(您有一个

<tr id="headline">
    <th class="side">Item</th>
    <th class="side">Manufacturer</th>
    <th class="side">Size</th>
    <th class="center">Unit Price</th>
    <th class="center">Quantity</th>
    <th class="center">Total Price</th>
</tr>

项目
制造商
大小
单价
量
总价

您好,您的最后一个标签未正确关闭“
总价”

您好,您的最后一个标签未正确关闭“
总价”

您好,您的最后一个标签未正确关闭“
总价”

您好,您的最后一个标签未正确关闭“
总价”

谢谢!关闭解决了我的问题!:-)然后,您可以验证答案的有效性我该如何做?请参阅:“要将答案标记为已接受,请单击答案旁边的复选标记,将其从灰色变为已填写。”谢谢!关闭解决了我的问题!:-)然后,您可以验证答案的有效性我该如何做?请参阅:“要将答案标记为已接受,请单击答案旁边的复选标记,将其从灰色变为已填写。”谢谢!关闭解决了我的问题!:-)然后,您可以验证答案的有效性我该如何做?请参阅:“要将答案标记为已接受,请单击答案旁边的复选标记,将其从灰色变为已填写。”谢谢!关闭解决了我的问题!:-)然后,您可以验证答案的有效性我该如何做?请参见:“要将答案标记为已接受,请单击答案旁边的复选标记,将其从灰色变为已填写。”