<html> <head> </head> <body> <html> <head> <script> function editRow(){ var x=document.getElementById('myTable').rows x[2].height="100" } </script> </head> <body> <table id="myTable" border="5"> <tr> <td>a</td> <td>b</td> </tr> <tr> <td>c</td> <td>d</td> </tr> <tr> <td>Ligne3 cellule1</td> <td>Ligne3 cellule2</td> </tr> <tr> <td>Ligne4 cellule1</td> <td>Ligne4 cellule2</td> </tr> <tr> <td>Ligne5 cellule1</td> <td>Ligne5 cellule2</td> </tr> </table> <form> <input type="button" onclick="editRow()" value="Modifier la taille de la ligne"> </form> </body> </html> </body> </html> |
Cet article Javascript: Modifier la longueure des cellules d’une table est apparu en premier sur .