Como ocultar los bordes de un Iframe en IE (Internet Explorer)

Posted in programación on nov 05, 2008

Hoy nuevamente y para variar el IE me ha hecho perder una buena cantidad de tiempo, tal ves por ceñirse al estándar de html o que se yo, pero el echo es que quería mostrar un iframe en una página y en firefox, el iframe sale sin ningún tipo de bordes, pero en IE por más que intenté por css quitar todos los bordes no lo conseguía.

 

La siguiente imagen es un iframe clásico como lo escribiríamos muchos:

<iframe class=”frmPubIzquierda” src=”laurl” width=”116″ scrolling=”no” height=”60″></iframe>

 

 image

 

Como no queremos ver los bordes, lo que tenemos que hacer es fijar otros atributos html del elemento iframe. (ver todos los atritbutos de iframe). Estos atributos son:

 

frameborder: Define el borde del marco (ancho) (Efecto IE si no se pone a 0: Color gris  alrededor)

marginwidth: Especifica la distancia entre el margen izquierdo y el contenido (Efecto IE si no se pone a 0: Color gris  a la izquierda)

marginheight: Especifica la distancia entre el margen superior y el contenido (Efecto IE si no se pone a 0: Color gris  a la arriba)

Así que para solucionarlo, simplemente añada estos atributos con valor ’0′ en la declaración del iframe

<iframe class=”frmPubIzquierda” src=”laurl” width=”116″ scrolling=”no” height=”60″ frameborder=’0′ marginwidth=’0′ marginheight =’0′></iframe>

Trackback URI | Comments RSS

26 Responses to “ Como ocultar los bordes de un Iframe en IE (Internet Explorer) ”

  1. # 1 Miguel Ángel Says:

    Perfecto aporte muchas gracias a mi el ie tambien me vuelve majara!!!

  2. # 2 Trafico web Says:

    muchas gracias amigo, ya me estaba iniciando a matar la cabeza, definitivamente explorer suck :P

  3. # 3 romina Says:

    Muchas gracias!!! me estaba volviendo loca!! muerte al explorer!
    :)

  4. # 4 jam007 Says:

    muchísimas gracias , yo estaba haciendo desde poner style o ponerme a hacer otra forma.
    creo que uno lo le de mas mente y los problemas mas difíciles se arreglan con cosas sencillas

  5. # 5 esr Says:

    Gracias amigo muy buena aportacion

  6. # 6 Miguel Says:

    Buen aporte !!! muchas gracias ya se me estava haciendo dificil encontrarle una solucion a este problema qu veo varios tenemos con el IE. Saludos… sigue asi

  7. # 7 daronwolff Says:

    Muchas gracias! Ha sido de gran utilidad

  8. # 8 angelica Says:

    Muchas gracias por tu colaboración has sido de gran ayuda

  9. # 9 dacosta51 Says:

    No hay de que, me alegra que sea de ayuda

  10. # 10 Beto Says:

    Men un 10 completo con esto hahahah me acabas de ahorrar tiempo y estres, para los nuevos en esto de las paginas pta un chulada estos consejos

  11. # 11 Julián Says:

    Muchas gracias!!

  12. # 12 forum profile service Says:

    Often it occurs that the global network is filled by web blogs and you can find a web blog of any topic. This variety of blogs can make back links really workable. The forum profile service can find blogs that will fit your kind of business. Thence, you can have got proper clients and higher ranking!

  13. # 13 San Antonio Alarms Says:

    I really like the dear information you offer in your articles. I’m able to bookmark your site and show the kids check out up here generally. I’m fairly positive they are likely to be informed a great deal of new stuff here than anyone else!

  14. # 14 Alarms San Antonio TX Says:

    Oh dear Blog God… I love this post so much!

  15. # 15 Houston Home Security Says:

    Thank you and looking for more posts. I am really satisfied with this posting that you have given us. This is really a stupendous work done by you.

  16. # 16 Home Security Says:

    I think that your perspective is deep, its just well thought out and really fantastic to see someone who knows how to put these thoughts down so well. Great job on this.

  17. # 17 Home Security Dallas Says:

    hiou juh hahf jied aefoju dtetg jaotgr jad dgrh a agre dgwr dag, youraj fag beko jaig hauie,thanakes.

  18. # 18 Dallas Home Security Says:

    Mèsi pou atik ou, mwen renmen, mwen swete gen se tankou yon bon opòtinite li atik la.

  19. # 19 Home Security Fort Worth Says:

    I have been meaning to write something like this on my website and you have given me an idea. Cheers.

  20. # 20 thesis Says:

    Centralize on what you are going to do at moment and aftertime, and have hope that the boundary will approach when it is damn well prepared. Or maybe thesis is what you need . Thanks.

  21. # 21 ugg boots canada Says:

    Or maybe thesis is what you need . Thanks.

  22. # 22 Dieta Para Adelgazar Says:

    Esta información es muy interesante yo estoy tratando sobre ella más profundamente en mi blog

  23. # 23 home security charlotte Says:

    Thanks for solving the issue my designer had been looking for quite a long time. This was helpful and resolved the bug.

  24. # 24 Dallas Alarm Monitoring Says:

    I found this is an informative and interesting post for I think it is very useful and knowledgeable. I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. In fact your creative writing ability has inspired me.

  25. # 25 MIG Welding Inverters Says:

    I would like to thank you for the efforts which you have made in writing this article. Nice to such useful and informative article.

  26. # 26 Juan Says:

    En E9 no me funciona :/
    Fuckin E9!

Leave a Reply


  • You Avatar
    La imagen superior la debo a mis dos artistas favoritos Mara Isabel y Oscar Mauricio (Mis hijos) que muy laboriosamente se tomaron el trabajo de hacer la imagen de este blog. Para ellos mis agradecimientos.