hey liebe community, es geht um folgendes:
ich habe eine tabelle mit vier feldern erstellt:
nun möchte ich den onclick eventhandler integrieren,ich weißt jedoch nicht ob der auch in die Tabelle darf
und ob das ale browser ordnugsgemäß ausgeben.
dürfte ich das so machen?:
ich habe eine tabelle mit vier feldern erstellt:
HTML:
<table>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>
Code:
* {
padding: 0;
margin: 0;
}
table {
border: 1px solid #0000FF;
padding: 0;
}
td {
width: 50px;
height: 50px;
border: 1px solid black;
}
und ob das ale browser ordnugsgemäß ausgeben.
dürfte ich das so machen?:
HTML:
<table>
<tr>
<td onmouseover="action1" onmouseout="action2"></td>
<td onmouseover="action1" onmouseout="action2"></td>
</tr>
<tr>
<td onmouseover="action1" onmouseout="action2"></td>
<td onmouseover="action1" onmouseout="action2"></td>
</tr>
</table>