<!DOCTYPEHTML>
<html class="reftest-wait">
<title>getComputedStyle across windows</title>
<style>
p { color: blue }
div { margin: 1em 0 }
</style>
<script>
var gRunCount = 2;
function run() {
if (--gRunCount != 0)
return;
var i = document.getElementById("i");
var pout = document.getElementById("out"); var poutnone = document.getElementById("outnone"); var pin = i.contentDocument.getElementsByTagName("p")[0]; var pinnone = i.contentDocument.getElementsByTagName("p")[1];
<div id="res1">This paragraph is the color that
outerWindow.getComputedStyle says the paragraph inside the iframe
is.</div>
<div id="res2">This paragraph is the color that
iframeWindow.getComputedStyle says the paragraph outside the iframe
is.</div>
<div id="res3">This paragraph is the color that
outerWindow.getComputedStyle says the display:none paragraph inside the iframe is.</div>
<div id="res4">This paragraph is the color that
iframeWindow.getComputedStyle says the display:none paragraph outside
the iframe is.</div>
Messung V0.5
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.21Bemerkung:
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.