2011-10-15 3 views

Répondre

4

Vous pouvez ajouter dir="rtl" attribut à la table:

<table border="1" dir="rtl"> 
    <tr> 
     <th>a</th> 
     <th>b</th> 
     <th>c</th> 
     <th>d</th> 
    </tr> 
</table> 

Démo: http://jsfiddle.net/74XHk/1/

(essayé d'ajouter à tr, qui ne fonctionne pas)

+0

'dir', ou' direction: 'est utilisé pour gérer la bidirectionnalité phen omenon http://www.w3.org/TR/CSS21/visuren.html#direction – Sotiris

0

Sûrement que

<table border="1"> 
    <tr>   
     <th>d</th> 
     <th>c</th> 
     <th>b</th> 
     <th>a</th> 
    </tr> 
</table> 

espère ne pas mal comprendre votre question.

0
<table border="1"> 
    <tr> 
     <th>d</th> 
     <th>c</th> 
     <th>b</th> 
     <th>a</th> 
    </tr> 
</table> 
4

ajoutez dans votre css th {float:right}. Cela va inverser la séquence, car il commencera par th d'abord qui contient d et flottera à droite, puis le second et ainsi de suite.

Démo:http://jsfiddle.net/ca86D/2/