2016-06-05 4 views
-2

누군가이 문제를 해결할 수 있습니까? 나는 자바 스크립트 W3 스쿨에서 게임을하고 신체의 온로드가 나는 테이블을 가지고이 그 테이블표시 방법 <th>

  <table> 
      <tr> 
       <th><h4>Cookie clicker </h4></th> 
       <th><h4>Sport Heads Football Championship</h4></th> 
       <th><h4>Slither.io</h4></th> 
       <th><h4>Game</h4></th> 
      </tr> 
      <tr> 
       <th> 
        <a href="http://orteil.dashnet.org/cookieclicker/"><img src="pictures/cookie.jpg" alt="cookieclicker" height="450" width="450"></a> 
       </th> 


       <th> 
        <a href="http://www.webgames.cz/sports-heads-football-championship/4295-0/"><img src="pictures/sportheads.jpg" height="450" width="450"></a> 
       </th> 
       <th> 
        <a href="http://www.slither.io"><img src="pictures/slither.jpg" height="450" width="450"></a> 
       </th> 
       <th id="table"> 
       </th> 
      </tr> 
     </table> 

에 넣어 필요하고이

  <script> 
      window.onload = function() { 
       document.getElementById('table'); 
       startGame(); 
      }; 
      </script> 

게임의 상단에 있습니다 테이블의 페이지 번호. 누군가 그것을 해결할 수 있습니까? 나는 그걸하는 법을 정말로 모른다. This is the pic where is a game

+0

[ask]를 읽으십시오. 이 질문에 대해 이해하기 어렵습니다. 당신이하려고하는 것을 전혀 분명히하지 마십시오. – charlietfl

답변

0

<th> 그것은 테이블 셀의 요소,

대신 <td> 요소를 사용하여 ... 테이블 헤더 요소입니다. (테이블 데이터)

<th>은 헤더 요소이기 때문에 일부 구현에서는 <tr> 요소를 무시하거나 무시할 수 있습니다.

자세한 내용은 here을 참조하십시오.

관련 문제