![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
27/06/2003, 01:53
|
![Avatar de KarlanKas](http://static.forosdelweb.com/customavatars/avatar11549_2.gif) | Moderador extraterrestre | | Fecha de Ingreso: diciembre-2001 Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 23 años, 1 mes Puntos: 61 | |
Esto te serviría?
<html>
<head>
</head>
<body>
<table>
<tr>
<td
style="border:solid 1px black;width:80px;height:50px;">
<div
id="tabla" style="overflow:auto;
width:100%;
height:100%;
font:normal 10px/10px verdana;">
Transilvania
</div>
</td>
</tr>
</table>
<input
type="Button"
style="font:normal 10px/10px verdana;"
value="pincha para agrandar"
onclick="tabla.style.font='bold 15px/15px verdana'">
</body>
</html>
La historia consiste en meter el contenido de la celda en una capa en cuyo estilo ponemos la propiedad overflow:auto. Así si se cambia el contenido pues salen las barrras de desplazamiento sin que te descuadre la tabla.
__________________ Cómo escribir
No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia. |