Ver Mensaje Individual
  #5 (permalink)  
Antiguo 22/02/2007, 15:10
Avatar de Daniel Ulczyk
Daniel Ulczyk
Super Moderador
 
Fecha de Ingreso: febrero-2005
Ubicación: Buenos Aires
Mensajes: 9.264
Antigüedad: 19 años, 3 meses
Puntos: 2114
Re: Texto con barra desplazadora en Tabla de DW

Entiendo que no necesariamente un IFRAME, se puede resolver teniendo el contenido en un mismo documento.
Mi propuesta es la siguiente:

Cita:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Tabla con scroll en una celda</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" media="screen">
table {
width: 600px;
}
td {
width: 300px;
height: 50px;
color: Black;
background-color: #000FFF;
}
th {
background-color: #2F4F4F;
color: #FFFFFF;
text-align: left;
}
.scrollable {
width: 300px;
height: 50px;
overflow: auto;
background-image: url(img/gradient1.png);
}

</style>
</head>
<body>
<table>
<tr>
<th>Columa1</th>
<th>Columna2</th>
</tr>
<tr>
<td>Cell 1,1 </td>
<td><div class="scrollable">
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. In tristique. Aenean ac lacus eget metus porttitor facilisis. Aenean augue.</p>
</div>
</tr>
<tr>
<td>Cell 2,1 </td>
<td>Cell 2,2 </td>
</tr>
</table>
</body>
</html>
Lo cual resume lo requerido (no consulté el enlace de referencia).
__________________
—Somos lo que hacemos repetidamente. La excelencia, entonces, no es un acto sino un hábito. (Aristóteles dixit)