soy nuevo y estoy intentando crear una pagina con iframe para luego imprimir el resultado. Si cargo los iframe tal cual ocupa muchas paginas para imprimir. Quería cambiar el tamaño de la letra y no lo conseguí. intente cambiar el autoheight y en chrone se realiza, pero en donde se emplea se realiza con ie8 y no funciona.
codigo.
<script type='text/javascript'>
function setIframeHeight(iframeId) {
var ifDoc, ifRef = document.getElementById( iframeId );
try {
ifDoc = ifRef.contentWindow.document.documentElement;
} catch (e) {
try {
ifDoc = ifRef.contentDocument.documentElement;
} catch (ee) {
}
}
if (fDoc) {
ifRef.height = 1;
ifRef.height = ifDoc.scrollHeight;
}
</script>
</head>
<body>
<div>
<p align="center"><font size="4"><b>LPA</b></font><br>
<iframe id="contentFrame" scrolling="no" frameborder="0" width="40%" src="http://weather.noaa.gov/pub/data/observations/metar/stations/GCLP.TXT" onload="setIframeHeight('contentFrame')"></iframe><iframe id="contentFrame" scrolling="no" frameborder="0" width="50%" src="http://weather.noaa.gov/pub/data/forecasts/taf/stations/GCLP.TXT" onload="setIframeHeight('contentFrame')"></iframe>
<p align="center"><font size="4"><b>TFS</b></font><br>
<iframe id="contentFrame" scrolling="no" frameborder="0" width="40%" src="http://weather.noaa.gov/pub/data/observations/metar/stations/GCTS.TXT" onload="setIframeHeight('contentFrame')"></iframe><iframe id="contentFrame" scrolling="no" frameborder="0" width="50%" src="http://weather.noaa.gov/pub/data/forecasts/taf/stations/GCTS.TXT" onload="setIframeHeight('contentFrame')"></iframe>
<p align="center"><font size="4"><b>ACE</b></font><br>
<iframe id="contentFrame" scrolling="no" frameborder="0" width="40%"src="http://weather.noaa.gov/pub/data/observations/metar/stations/GCRR.TXT" onload="setIframeHeight('contentFrame')"><iframe id="contentFrame" scrolling="no" frameborder="0" width="50%" src="http://weather.noaa.gov/pub/data/forecasts/taf/stations/GCRR.TXT" onload="setIframeHeight('contentFrame')"></iframe>
<p align="center"><font size="4"><b>FUE</b></font><br>
<iframe id="contentFrame" scrolling="no" frameborder="0" width="40%" src="http://weather.noaa.gov/pub/data/observations/metar/stations/GCFV.TXT" onload="setIframeHeight('contentFrame')"></iframe><iframe id="contentFrame" scrolling="no" frameborder="0" width="50%" src="http://weather.noaa.gov/pub/data/forecasts/taf/stations/GCFV.TXT" onload="setIframeHeight('contentFrame')"></iframe>
<p align="center"><font size="4"><b>CMMN</b></font><br>
<iframe id="contentFrame" scrolling="no" frameborder="0" width="40%" src="http://weather.noaa.gov/pub/data/observations/metar/stations/GMMN.TXT" onload="setIframeHeight('contentFrame')"></iframe><iframe id="contentFrame" scrolling="no" frameborder="0" width="50%" src="http://weather.noaa.gov/pub/data/forecasts/taf/stations/GMMN.TXT" onload="setIframeHeight('contentFrame')"></iframe>
<p align="center"><font size="4"><b>FAO</b></font><br>
<iframe id="contentFrame" scrolling="no" frameborder="0" width="40%" src="http://weather.noaa.gov/pub/data/observations/metar/stations/LPFR.TXT" onload="setIframeHeight('contentFrame')"></iframe><iframe id="contentFrame" scrolling="no" frameborder="0" width="50%" src="http://weather.noaa.gov/pub/data/forecasts/taf/stations/LPFR.TXT" onload="setIframeHeight('contentFrame')"></iframe>
<p align="center"><font size="4"><b>LIS</b></font><br>
<iframe id="contentFrame" scrolling="no" frameborder="0" width="40%" src="http://weather.noaa.gov/pub/data/observations/metar/stations/LPPT.TXT" onload="setIframeHeight('contentFrame')"></iframe><iframe id="contentFrame" scrolling="no" frameborder="0" width="50%"src="http://weather.noaa.gov/pub/data/forecasts/taf/stations/LPPT.TXT" onload="setIframeHeight('contentFrame')"></iframe>
</div>
alguien me puede hechar una mano.