Ver Mensaje Individual
  #5 (permalink)  
Antiguo 17/08/2009, 10:05
Avatar de deirdre
deirdre
 
Fecha de Ingreso: mayo-2009
Mensajes: 690
Antigüedad: 14 años, 11 meses
Puntos: 45
Respuesta: Iframe height 100% no funcina en IE ni Firefox

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