Ver Mensaje Individual
  #6 (permalink)  
Antiguo 17/08/2009, 11:31
Ozone
 
Fecha de Ingreso: febrero-2009
Mensajes: 202
Antigüedad: 15 años, 2 meses
Puntos: 3
Respuesta: Iframe height 100% no funcina en IE ni Firefox

Cita:
Iniciado por deirdre Ver Mensaje
Hola

Se puede hacer como dice abimaelrc, pero quizás no sea adecuado utilizar javascript para este uso, siendo más fácil y adecuado una simple declaración en la hoja de estilo:

Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>iframe al 100% ancho y alto</title>
<style type="text/css">
html, body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}
</style>
</head>

<body>
<iframe src="a.htm" width="100%" frameborder="0" height="100%" scrolling="auto"></iframe>
</body>

</html> 
De esta forma el iframe ocupa el 100% del ancho y el alto de la pantalla.

Bye
Claro, el tema es que yo tengo el body con muchas otras definiciones que hacen al aspecto de mi web, si pongo ese code se me desacomodará todo....