iframes altura no del 100% en Internet Explorer

  • UniquelyYoursPC
  • Web Master
  • Web Master
  • Avatar de Usuario
  • Registrado: Ene 22, 2003
  • Mensajes: 2998
  • Loc: Canada "A"
  • Status: Offline

Nota Septiembre 11th, 2011, 4:11 pm

Puedo conseguir que funcione bien en firefox y chrome pero no IE

Código: [ Select ]
<style type="text/css">
div.tabBox {}

div.tabArea {
 font-size: 100%;
 font-weight: bold;
 padding: 0px 0px 3px 0px;
}

a.tab {
 background-color: #ffffff;
 border: .5px solid #858585;
 border-bottom-width: 0px;
 border-color: #858585;
 -moz-border-radius: .75em .75em 0em 0em;
 border-radius-topleft: .75em;
 border-radius-topright: .75em;
 padding: 2px 1em 2px 1em;
 position: relative;
 text-decoration: none;
 top: 3px;
 z-index: 100;
}

a.tab, a.tab:visited {
 color: #000005;
}

a.tab:hover {
 background-color: #dedede;
 border-color: 858585;
 color: #858585;
}

a.tab.activeTab, a.tab.activeTab:hover, a.tab.activeTab:visited {
 background-color: #858585;
 border-color: #858585;
 color: #000000;
}

a.tab.activeTab {
 padding-bottom: 4px;
 top: 1px;
 z-index: 102;
}

div.tabMain {
 background-color: #ffffff;
 border: .5px solid #dedede;
 border-color: #dedede;
 -moz-border-radius: 0em .5em .5em 0em;
 border-radius-topright: .5em;
 border-radius-bottomright: .5em;
 padding: .5em;
 position: relative;
 z-index: 101;
}

div.tabIframeWrapper {
 width: 100%;
 height:100%
}

iframe.tabContent {
 background-color: #ffffff;
 border: 1px solid #ffffff5;
 border-color: #ffffff;
 width: 100%;
 height: 100%;
}

h4#title {
 background-color: #ffffff;
 border: 1px solid #ffffff;
 border-color: #ffffff;
 color: #ffffff;
 font-weight: bold;
 margin-top: 0em;
 margin-bottom: .5em;
 padding: 2px .5em 2px .5em;
}
table {height:100%;width:100%;table-layout:static;border-collapse:collapse}
</style>
<script language="JavaScript">
&lt;!--
function resize_iframe()
{

    var height=window.innerWidth;//Firefox
    if (document.body.clientHeight)
    {
        height=document.body.clientHeight;//IE
    }
    //resize the iframe according to the size of the
    //window (all these should be on the same line)
    document.getElementById(&quot;glu&quot;).style.height=parseInt(height-
    document.getElementById(&quot;glu&quot;).offsetTop-8)+&quot;px&quot;;
}

// this will resize the iframe every
// time you change the size of the window.
window.onresize=resize_iframe;

//Instead of using this you can use:
//    &lt;BODY onresize=&quot;resize_iframe()&quot;&gt;


//--&gt;
</script>
<script type="text/javascript">//&lt;![CDATA[

function synchTab(frameName) {

 var elList, i;

 // Exit if no frame name was given.

 if (frameName == null)
  return;

 // Check all links.

 elList = document.getElementsByTagName(&quot;A&quot;);
 for (i = 0; i &lt; elList.length; i++)

  // Check if the link's target matches the frame being loaded.

  if (elList[i].target == frameName) {

   // If the link's URL matches the page being loaded, activate it.
   // Otherwise, make sure the tab is deactivated.

   if (elList[i].href == window.frames[frameName].location.href) {
    elList[i].className += &quot; activeTab&quot;;
    elList[i].blur();
   }
   else
    removeName(elList[i], &quot;activeTab&quot;);
  }
}

function removeName(el, name) {

 var i, curList, newList;

 if (el.className == null)
  return;

 // Remove the given class name from the element's className property.

 newList = new Array();
 curList = el.className.split(&quot; &quot;);
 for (i = 0; i &lt; curList.length; i++)
  if (curList[i] != name)
   newList.push(curList[i]);
 el.className = newList.join(&quot; &quot;);
}

//]]&gt;</script>
<script language="JavaScript">
<!--
function resize_iframe()
{

    var height=window.innerWidth;//Firefox
    if (document.body.clientHeight)
    {
        height=document.body.clientHeight;//IE
    }
    //resize the iframe according to the size of the
    //window (all these should be on the same line)
    document.getElementById("glu").style.height=parseInt(height-
    document.getElementById("glu").offsetTop-8)+"px";
}

// this will resize the iframe every
// time you change the size of the window.
window.onresize=resize_iframe;

//Instead of using this you can use:
//    <BODY onresize="resize_iframe()">


//-->
</script>








<br.<br><br /> put some text here, and a customize now button





<div style="clear: both;" class="tabBox">
 <div class="tabArea">
  <a target="tabIframe2" href="predatoramd/overview.html" class="tab">Overview</a>
  <a target="tabIframe2" href="predatoramd/feature.html" class="tab">Features</a>
  <a target="tabIframe2" href="predatoramd/reviews.html" class="tab">Reviews</a>
 </div>
 <div class="tabMain">
  <h4 id="title">Top Picks</h4>
  <div class="tabIframeWrapper"><iframe id="glu" width="100%" onload="resize_iframe()" class="tabContent" name="tabIframe2" src="predatoramd/overview.html" marginheight="8" marginwidth="8" frameborder="0"></iframe></div>
 </div>
</div>


</br.<br>
  1. <style type="text/css">
  2. div.tabBox {}
  3. div.tabArea {
  4.  font-size: 100%;
  5.  font-weight: bold;
  6.  padding: 0px 0px 3px 0px;
  7. }
  8. a.tab {
  9.  background-color: #ffffff;
  10.  border: .5px solid #858585;
  11.  border-bottom-width: 0px;
  12.  border-color: #858585;
  13.  -moz-border-radius: .75em .75em 0em 0em;
  14.  border-radius-topleft: .75em;
  15.  border-radius-topright: .75em;
  16.  padding: 2px 1em 2px 1em;
  17.  position: relative;
  18.  text-decoration: none;
  19.  top: 3px;
  20.  z-index: 100;
  21. }
  22. a.tab, a.tab:visited {
  23.  color: #000005;
  24. }
  25. a.tab:hover {
  26.  background-color: #dedede;
  27.  border-color: 858585;
  28.  color: #858585;
  29. }
  30. a.tab.activeTab, a.tab.activeTab:hover, a.tab.activeTab:visited {
  31.  background-color: #858585;
  32.  border-color: #858585;
  33.  color: #000000;
  34. }
  35. a.tab.activeTab {
  36.  padding-bottom: 4px;
  37.  top: 1px;
  38.  z-index: 102;
  39. }
  40. div.tabMain {
  41.  background-color: #ffffff;
  42.  border: .5px solid #dedede;
  43.  border-color: #dedede;
  44.  -moz-border-radius: 0em .5em .5em 0em;
  45.  border-radius-topright: .5em;
  46.  border-radius-bottomright: .5em;
  47.  padding: .5em;
  48.  position: relative;
  49.  z-index: 101;
  50. }
  51. div.tabIframeWrapper {
  52.  width: 100%;
  53.  height:100%
  54. }
  55. iframe.tabContent {
  56.  background-color: #ffffff;
  57.  border: 1px solid #ffffff5;
  58.  border-color: #ffffff;
  59.  width: 100%;
  60.  height: 100%;
  61. }
  62. h4#title {
  63.  background-color: #ffffff;
  64.  border: 1px solid #ffffff;
  65.  border-color: #ffffff;
  66.  color: #ffffff;
  67.  font-weight: bold;
  68.  margin-top: 0em;
  69.  margin-bottom: .5em;
  70.  padding: 2px .5em 2px .5em;
  71. }
  72. table {height:100%;width:100%;table-layout:static;border-collapse:collapse}
  73. </style>
  74. <script language="JavaScript">
  75. &lt;!--
  76. function resize_iframe()
  77. {
  78.     var height=window.innerWidth;//Firefox
  79.     if (document.body.clientHeight)
  80.     {
  81.         height=document.body.clientHeight;//IE
  82.     }
  83.     //resize the iframe according to the size of the
  84.     //window (all these should be on the same line)
  85.     document.getElementById(&quot;glu&quot;).style.height=parseInt(height-
  86.     document.getElementById(&quot;glu&quot;).offsetTop-8)+&quot;px&quot;;
  87. }
  88. // this will resize the iframe every
  89. // time you change the size of the window.
  90. window.onresize=resize_iframe;
  91. //Instead of using this you can use:
  92. //    &lt;BODY onresize=&quot;resize_iframe()&quot;&gt;
  93. //--&gt;
  94. </script>
  95. <script type="text/javascript">//&lt;![CDATA[
  96. function synchTab(frameName) {
  97.  var elList, i;
  98.  // Exit if no frame name was given.
  99.  if (frameName == null)
  100.   return;
  101.  // Check all links.
  102.  elList = document.getElementsByTagName(&quot;A&quot;);
  103.  for (i = 0; i &lt; elList.length; i++)
  104.   // Check if the link's target matches the frame being loaded.
  105.   if (elList[i].target == frameName) {
  106.    // If the link's URL matches the page being loaded, activate it.
  107.    // Otherwise, make sure the tab is deactivated.
  108.    if (elList[i].href == window.frames[frameName].location.href) {
  109.     elList[i].className += &quot; activeTab&quot;;
  110.     elList[i].blur();
  111.    }
  112.    else
  113.     removeName(elList[i], &quot;activeTab&quot;);
  114.   }
  115. }
  116. function removeName(el, name) {
  117.  var i, curList, newList;
  118.  if (el.className == null)
  119.   return;
  120.  // Remove the given class name from the element's className property.
  121.  newList = new Array();
  122.  curList = el.className.split(&quot; &quot;);
  123.  for (i = 0; i &lt; curList.length; i++)
  124.   if (curList[i] != name)
  125.    newList.push(curList[i]);
  126.  el.className = newList.join(&quot; &quot;);
  127. }
  128. //]]&gt;</script>
  129. <script language="JavaScript">
  130. <!--
  131. function resize_iframe()
  132. {
  133.     var height=window.innerWidth;//Firefox
  134.     if (document.body.clientHeight)
  135.     {
  136.         height=document.body.clientHeight;//IE
  137.     }
  138.     //resize the iframe according to the size of the
  139.     //window (all these should be on the same line)
  140.     document.getElementById("glu").style.height=parseInt(height-
  141.     document.getElementById("glu").offsetTop-8)+"px";
  142. }
  143. // this will resize the iframe every
  144. // time you change the size of the window.
  145. window.onresize=resize_iframe;
  146. //Instead of using this you can use:
  147. //    <BODY onresize="resize_iframe()">
  148. //-->
  149. </script>
  150. <br.<br><br /> put some text here, and a customize now button
  151. <div style="clear: both;" class="tabBox">
  152.  <div class="tabArea">
  153.   <a target="tabIframe2" href="predatoramd/overview.html" class="tab">Overview</a>
  154.   <a target="tabIframe2" href="predatoramd/feature.html" class="tab">Features</a>
  155.   <a target="tabIframe2" href="predatoramd/reviews.html" class="tab">Reviews</a>
  156.  </div>
  157.  <div class="tabMain">
  158.   <h4 id="title">Top Picks</h4>
  159.   <div class="tabIframeWrapper"><iframe id="glu" width="100%" onload="resize_iframe()" class="tabContent" name="tabIframe2" src="predatoramd/overview.html" marginheight="8" marginwidth="8" frameborder="0"></iframe></div>
  160.  </div>
  161. </div>
  162. </br.<br>




No puedo conseguirlo para ir 100% altura de IE
y en Firefox va al final de la página, pero todavía tengo una barra de desplazamiento...
lo quiere es el iframe tabed como se ve aquí http://ca . gigabyte. com/products/product-page.aspx?pid=3962 #na quitar los espacios
  • Anonymous
  • Bot
  • No Avatar
  • Registrado: 25 Feb 2008
  • Mensajes: ?
  • Loc: Ozzuland
  • Status: Online

Nota Septiembre 11th, 2011, 4:11 pm

  • UniquelyYoursPC
  • Web Master
  • Web Master
  • Avatar de Usuario
  • Registrado: Ene 22, 2003
  • Mensajes: 2998
  • Loc: Canada "A"
  • Status: Offline

Nota Septiembre 13th, 2011, 11:53 am

¿alguien tiene alguna idea? es decir muestra un marco alrededor de 400 px de altura pero en firefox y chrome muestra un marco alrededor de 3 páginas de altura
me gustaría no tienen barras de desplazamiento y tiene la página Cargar desde la ficha para cargar la página completa

estaría abierto al uso de php si sería de gran ayuda.
  • UniquelyYoursPC
  • Web Master
  • Web Master
  • Avatar de Usuario
  • Registrado: Ene 22, 2003
  • Mensajes: 2998
  • Loc: Canada "A"
  • Status: Offline

Nota Septiembre 20th, 2011, 12:18 pm

acabé consiguiendo esto fija con algunos java script no estoy en casa ahora por lo que no puedo publicarla pero lo haré cuando me baje de trabajo
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • Avatar de Usuario
  • Registrado: Dic 20, 2002
  • Mensajes: 8934
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Nota Septiembre 20th, 2011, 8:22 pm

¿Qué versión de IE usaban en que existía ese problema? Nunca vi su otra versión antes de que se aplica la corrección, pero me imagino que debe haber una manera de resolver este problema sin tener que recurrir al uso de JavaScript. Si puede poner una página temporal hasta algún lugar que sigue mostrando la cuestión podría ser capaz de ayudar a:)
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • UniquelyYoursPC
  • Web Master
  • Web Master
  • Avatar de Usuario
  • Registrado: Ene 22, 2003
  • Mensajes: 2998
  • Loc: Canada "A"
  • Status: Offline

Nota Septiembre 21st, 2011, 7:15 am

Yo estaba usando ie8... es decir 9 simplemente no le gusta mi equipo.
Si me recuerden a publicar el código cuando llegue a casa. y creo que tengo el antiguo código he utilizado así asi publico.
  • sherma
  • Silver Member
  • Silver Member
  • Avatar de Usuario
  • Registrado: Jun 13, 2011
  • Mensajes: 127
  • Status: Offline

Nota Septiembre 23rd, 2011, 7:13 am

Ive tuve este problema con IE antes muchas veces. La mayoría del tiempo aunque fue cuando estaba tratando de utilizar el módulo iframe en joomla. Contento que fijo tenes!

Publicar Información

  • Total de mensajes en este tema: 6 mensajes
  • Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 178 invitados
  • No puede abrir nuevos temas en este Foro
  • No puede responder a temas en este Foro
  • No puede editar sus mensajes en este Foro
  • No puede borrar sus mensajes en este Foro
  • No puede enviar adjuntos en este Foro
 
 

© 2011 Unmelted, LLC. Ozzu® es una marca registrada de Unmelted, LLC