Javascript: Modifier le cellPadding et cellSpacing d’une table

Author:

Javascript: Modifier le cellPadding et cellSpacing d'une table
Download

<html>
  <head>
 
  </head>
  <body>
    <html>
 
<head>
<script>
function padding(){
    document.getElementById('myTable').cellPadding="50"
}
function spacing(){
    document.getElementById('myTable').cellSpacing="50"
}
</script>
</head>
<body>
 
<table id="myTable" border="5">
    <tr>
        <td>Paris</td>
        <td>Londre</td>
    </tr>
    <tr>
        <td>Madrid</td>
        <td>Berlin</td>
    </tr>
</table>
<form>
    <input type="button" onclick="padding()" value="Modifier Cellpadding">
    <input type="button" onclick="spacing()" value="Modifier Cellspacing">
</form>
</body>
 
</html>
  </body>
</html>

Cet article Javascript: Modifier le cellPadding et cellSpacing d’une table est apparu en premier sur .