-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 ...

我可以通过以下方式获取内容:

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

有人知道如何获得背景颜色吗?我需要得到这个:rgb(0, 204, 204)

谢谢你

4

1 回答 1

0

关于什么

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

背景颜色

于 2009-09-24T09:56:33.273 回答