1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
<!doctype html>
<html lang="fr-FR">
<head>
<meta charset="UTF-8" />
<title>cellule extensible avec hover</title>
<style type="text/css">
td {
border: thin solid black;
max-width: 24px;
overflow: hidden;
}
.extended::before { content: "+"; color: red; }
.extended:hover::before { content: none; }
.extended:hover { max-width: 100%; } /* Passer la souris sur la cellule */
</style>
</head>
<body>
<table>
<tr>
<td class="extended">aaaaaaaaaaaaaaa</td>
<td>lol</td>
</tr>
</table>
</body>
</html> |