2014-07-16 3 views
1

다른 모든 기능은 작동하지만 테이블은 작동하지 않습니다. 본문 글꼴이 작동하고 헤더가 작동하고 blockquote가 작동하지만 표시 할 테이블을 가져올 수 없습니다. 저에게 새로운 것을 도와주세요.내 CSS 스타일 중 일부만 내 html 파일에 출력됩니다.

body { 
    font-family: verdana, geneva, arial, sans-serif; 
    font-size: small; 
} 
h1, h2 { 
    font-weight: normal; 
    color: #cc6600; 
    border-bottom: thin dotted #888888; 
} 

h1 { 
    font-size: 170%; 
} 
h2 { 
    font-size: 130%; 
}   
blockquote { 
    font-style: italic; 
} 
table { 
    margin-left: 20px; 
    margin-right: 20px; 
    border: thin solid black; 
    caption-side: bottom; 
    border-collapse: collapse; 
} 
td, th { 
    border: thin dotted gray; 
    padding: 5px; 
} 
caption { 
    font-style: italic; 
    padding-top: 8px; 
} 

여기 내 HTML입니다.

<!DOCTYPE html PUBLIC "-//w3c//dtd xhtml 1.0 strict//en" 
"http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> 
<html xmlns="http:http://www.w3.org/1999/xhtml" lang="en" xml: lang="en"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 

<link rel="stylesheet" type="text/css" href="myjournal.css"> 

<title>My Trip Around the USA on a Segway eating shit</title> 
</head> 
<body> 
    <h1>Segway'n USA</h1> 
<p>Documenting my trip around the US on my very own Segway!</p> 
<h2>August 20, 2005</h2> 
<p><img src="images/segway2.jpg" alt="" /></p> 
<p>Well I made it 1200 miles already, and I passed through some 
interesting places on the way:</p> 
<table summary="This table holds data about the cities I 
visited on my travels. I've included the date I was in 
each city, the temperature when I was there, and altitude and 
population of  each city. I've also included a rating of 
the diners where 
I had lunch, on a scale from 1 to 5."> 
<caption>The cities I visited on my Segway'n USA travels</caption> 
<tbody> 
    <tr><th>City</th><th>Date</th><th>Temperature</th> 
    <th>Altitude</th><th>Population</th><th>Diner Rating</th></tr> 
    <tr> 
    <td>Walla Walla, WA</td> 
<td>June 15th</td> 
<td>75</td> 
<td>1,204 ft</td> 
<td>29,686</td> 
<td>4/5</td> 
</tr> 
<tr> 
<td>Magic City, ID</td> 
<td>June 25th</td> 
<td>74</td> 
<td>5.312 ft</td> 
<td>50</td> 
<td>3/5</td> 
</tr> 
<tr> 
<td>Bountiful, UT</td> 
<td>July 10th</td> 
<td>91</td> 
<td>4,226 ft</td> 
<td>41,173</td> 
<td>4/5</td> 
</tr> 
<tr> 
<td>Last Chance, CO</td> 
<td>July 23rd</td> 
<td>102</td> 
<td>4,780 ft</td> 
<td>265</td> 
<td>3/5</td> 
</tr> 
<tr> 
<td>Truth or Consequences, NM</td> 
<td>August, 9th</td> 
<td>93</td> 
<td>4,242 ft</td> 
<td>7,289</td> 
<td>5/5</td> 
</tr> 
<tr> 
<td>Why, AZ</td> 
<td>August, 18th</td> 
<td>104</td> 
<td>860 ft</td> 
<td>480</td> 
<td>3/5</td> 
</tr> 
</tbody> 
</table> 
<h2>July 14, 2005</h2> 
<p>I saw some Burma Shave style signs on the side of the road today:</p> 
<blockquote> 
passing cars,<br> 
when you can't see, <br> 
May get you, <br> 
A glimpse, <br> 
of eternity. <br> 
</blockquote> 
<p>I definitely won't be passing any cars.</p> 
<h2>June 2, 2005</h2> 
<p><img src="images/segway1.jpg" alt="" /></p> 
<p>My first day of the trip! I can't believe I finally got 
everything packed and ready to go. Because I'm on a Segway, 
    I wasn't able to bring a whole lot with me:</p> 
<ul> 
    <li>cell phone</li> 
    <li>ipod</li> 
    <li>digital camera</li> 
    <li>a protein bar</li> 
</ul> 
<p>Just the essentials. As Lao Tzu would have said, 
<q>A journey of a thousand miles begins with one Segway.</q></p> 

</body> 
</html> 
+3

html 코드를 게시하십시오. –

답변

3

h1 정의를 닫습니다.

h1 { 
    font-size: 170%; 
} /* here! */ 
+0

텍스트 프로세서 나 IDE를 강조하는 구문을 사용하십시오! – laffuste

+0

질문을 제대로 읽으셨습니까 ?? –

+0

@AmarnathBalasubramanian : 예 전후로 코드를 테스트하고 테스트했지만 어쩌면 내가 누락 된 부분을 이해하도록 도울 수 있습니까? – laffuste

관련 문제