Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/02/2010, 17:21
Avatar de angel1993
angel1993
 
Fecha de Ingreso: octubre-2009
Mensajes: 752
Antigüedad: 15 años, 1 mes
Puntos: 22
Problema alto iframe

Necesito que se vea 100% de alto, pero no me funciona.. :(
Código HTML:
Ver original
  1. <html xmlns="http://www.w3.org/1999/xhtml">
  2. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  3. <title>no titulo</title>
  4. <style type="text/css">
  5. <!--
  6. .position {
  7.   position: fixed;
  8.   right: 0px;
  9.   bottom: 0px;
  10. }
  11. .iframe {
  12.     height: 100%;
  13.     width: 100%;
  14. }
  15. body {
  16.     margin-left: 0px;
  17.     margin-top: 0px;
  18.     margin-right: 0px;
  19.     margin-bottom: 0px;
  20. }
  21. -->
  22.  
  23. </head>
  24.  <iframe src="http://web.com/" class="iframe" scrolling="auto" frameborder="1" transparency>
  25. <p>Tu navegador no soporta un iframe.</p>
  26. <script type="text/javascript">
  27. var ancho = 350;
  28. var alto = 280;
  29. function tama(pid){
  30. ancho += 50;
  31. alto += 50;
  32. document.getElementById(pid).style.width = ancho+'px';
  33. document.getElementById(pid).style.height = alto+'px';
  34. }
  35.  
  36. var ancho = 350;
  37. var alto = 280;
  38. function meta(pid){
  39. ancho -= 50;
  40. alto -= 50;
  41. document.getElementById(pid).style.width = ancho+'px';
  42. document.getElementById(pid).style.height = alto+'px';
  43. }
  44.  
  45. function abrir(pid){
  46.     if (document.getElementById(pid).style.display=="none"){document.getElementById(pid).style.display=""}
  47.     else{document.getElementById(pid).style.display="none"}
  48. }</script>
  49.  
  50. <table class="position" border="0">
  51.   <tr>
  52.     <td><div style="display:block" id="11"><a onClick="javascript:abrir(14);abrir(11)" href="http://www.xatech.com/web_gear/chat/chat.swf?id=77321530" target="13"><img src="http://img341.imageshack.us/img341/3355/irci.png" alt="" width="39" height="35" border="0" /></a></div></td>
  53.   </tr>
  54.   <tr>
  55.     <td><div id="14" style="display:none">
  56. <a onClick=" javascript:tama(13)" href="http://www.xatech.com/web_gear/chat/chat.swf?id=77321530"  target="13"><img src="http://www.iconlet.com/icons/twotone/red/arrow-upleft.gif" alt="" width="16" height="16" border="0" /></a>
  57.  
  58. <a onClick=" javascript:meta(13)" href="http://www.xatech.com/web_gear/chat/chat.swf?id=77321530"  target="13"><img src="http://www.iconlet.com/icons/twotone/red/arrow-downright.gif" alt="" width="16" height="16" border="0" /></a>
  59.  
  60. <a onClick="javascript:abrir(14);javascript:abrir(11)" href="http://www.google.com/" target="13"><img src="http://www.iconfinder.net/data/icons/freeapplication/png/24x24/Close.png" alt="" width="16" height="16" border="0" /></a>
  61. <br /><iframe name="13" id="13" width="350" height="280" src="" />
  62.     </div></td>
  63.   </tr>
  64.  
  65. </body>
  66. </html>