Tema: Capas div
Ver Mensaje Individual
  #4 (permalink)  
Antiguo 07/02/2011, 04:17
Whaith
 
Fecha de Ingreso: febrero-2011
Ubicación: Madrid
Mensajes: 9
Antigüedad: 13 años, 2 meses
Puntos: 1
Respuesta: Capas div

Buenas,

Yo también tengo una estructura similar, y con un iframe auto-ajustable lo solucionas seguro. Aqui te dejo el codigo para que se auto-ajuste.

Código HTML:
<script language="JavaScript"> 
          <!--
          function calcHeight()
          {
        //find the height of the internal page
        var the_height=
        document.getElementById('resize').contentWindow.
        document.body.scrollHeight;
        
        //change the height of the iframe
        document.getElementById('resize').height=
        the_height;
        }
        //-->
</script>


<iframe src="noticias.html" name="content" scrolling="no" onLoad="calcHeight();" id="resize" style="padding:10px; margin-top:10px; margin-bottom:10px; text-align: center; width: 700px;" allowtransparency="true">Tu Navegador no está configurado para soportar estos frames</iframe> 

El problema que tengo yo es que si luego tienes mas capas <div> dentro de la pagina que abres, dependiendo del navegador, hay atributos de div que no te coge. Si la página que vas a abrir es html pelao... no vas a tener problemas.