2009-09-24 2 views
-1
..some code here ... 

<iframe id="iView" frameborder="0" style="position: relative; z-index: 1500; left: 387px; top: 90px; width: 185px; height: 180px;" name="iView" src=""> 
<html> 
<head> 
</head> 
<body style="background-color: rgb(0, 204, 204);"> CONTENT </body> 
</html> 
</iframe> 

..some code here ... 

je peux obtenir le contenu avec ceci:comment obtenir backgroundcolor de iframe? peut-être iframe_window.document?

iframe_window.document.getElementsByTagName("body")[0].innerHTML; 

quelqu'un sait comment obtenir la couleur d'arrière-plan? je dois obtenir ceci: rgb (0, 204, 204)

merci

Répondre

0

Qu'en est-

iframe_window.document.getElementsByTagName("body")[0].style.backgroundColor 

backgroundColor

+0

Est-ce incorrect? – rahul

Questions connexes