2012-07-03 7 views

Répondre

3

Hey, vous pouvez maintenant définir dans votre css comme celui-ci

Css

.some{ 
    width:15px; 
    } 

HTML

<table border="1" width="100%"> 
     <tr> 
       <th class="some">Select</th> 
       <th>Name</th> 
       <th class="some">Preview</th> 
     </tr> 
</table> 

démonstration en direct http://tinkerbin.com/n4Q1NOXW

+0

Fonctionne comme un charme! Merci!! –

1
<table border="1" width="100%"> 
     <tr> 
       <th width="15">Select</th> 
       <th>Name</th> 
       <th width="15">Preview</th> 
     </tr> 
1

vous pouvez utiliser comme

<table border="1" width="100%"> 
    <tr> 
     <th width="15px">Select</th> 
     <th>Name</th> 
     <th width="15px">Preview</th> 
    </tr> 
0
<table border="1px" width="100%"> 
    <tr> 
     <th width="15px">Select</th> 
     <th>Name</th> 
     <th width="15px">Preview</th> 
    </tr> 
</table>​​​​​​​​​​​​​​​​​​​​​ 

Si vous souhaitez afficher un aperçu dans un écran de taille en fonction de leur taille, utilisez pour déterminer la taille « % ». Par ex

<table border="1px" width="100%"> 
    <tr> 
     <th width="15%">Select</th> 
     <th>Name</th> 
     <th width="15%">Preview</th> 
    </tr> 
</table>​​​​​​​​​​​​​​​​​​​​​ 
Questions connexes