CSSを使用して表の見出し行を修正するにはどうすればよいですか?[閉まっている]
質問
列には枠線を付けず、行のみ1pxの枠線を付けた表を作成しました。
「境界線を折りたたむ」プロパティを使用し、すべての行に 1 ピクセルの境界線を与えました。
しかし、私の問題は、見出しの行が表の残りの行より少し長いことです。
どうすれば修正できるか知っている人はいますか?
前もって感謝します。
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>
CSSコード:
.outlined
{
font:13px Tahoma;
width: 75%;
border-collapse: collapse;
}
tr {
border: 1px solid white;
}
.secondCol{
background-color: #eeeff2
}
.firstCol{
background-color: #dfe1e7
}
.center{
text-align: center;
}
.side{
text-align: left
}
#headline{
background-color: #687291;
color: white;
}
解決
属性値の周りの引用符が欠落しており、終わりが欠落しています </th>
最初の行の「合計価格」( <th>
その代わり)
<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>
他のヒント
こんにちは、最後のタグが正しく閉じられていません。」<th class=center>Total Price<th>
"
所属していません StackOverflow