tamaño del contenido del iframe

Estoy usando un iframe dentro de una div and I noticed one strange thing, the view looked zoomed-out in the iframe, as in the text looks smaller than it would on a separate page.

Why is that and how can I make it rhe same size as normal?

Code for iframe:

function SetContent(link) {
            document.getElementById('lowerContent').innerHTML =
         "<iframe frameborder='0' src='" + link + "' width='100%'" + " height='" + (screen.height - 100) + "px'";
        } 

preguntado el 31 de julio de 12 a las 11:07

1 Respuestas

Assuming 'lowerContent' is the div, one issue is you don't seem to be closing the iframe. don't forget to add ....

"></iframe>"

Respondido el 11 de Septiembre de 12 a las 22:09

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.