各位大虾,如下是某网页的一个框架中包含的代码?为什么我在Webbrowser中只能看到 红色部分的代码,其他的代码总是看不到呢  怎样才能看到完整代码啊?
还有 #document是什么含义?我在网上搜了很久也没找到,不好意思 很少接触html了。
还有就是我要怎么才能得到框架中的元素,如followBtn?问题比较多 谢谢各位大虾了 ,分不多 全送上了
<iframe allowtransparency="" border="0" frameborder="0" height="22" marginheight="0" marginwidth="0" scrolling="no" src=".........">#document
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>title</title><script type="text/javascript">
........
</script></head>
<body marginwidth="0" marginheight="0">
<div>
     <a href="#" class="WB_widgets WB_followButton" id="followBtn">
     <span class="FB_typeB" id="fStatus" title="CCCCC"><em class="WB_icon"></em><span class="WB_icon_text" id="fText"></span></span>
     </a>
</div></body></html>
</iframe>

解决方案 »

  1.   

    既然#在html标签之上 那应该就是跟doctype差不多的东西 就是验证文档有效性的  得到里面的ID  那你就在包含那个页面里面去得到就可以了撒
      

  2.   

    <iframe allowtransparency="" border="0" frameborder="0" height="22" marginheight="0" marginwidth="0" scrolling="no" src=".........">你这里height是22px,调用的页面是不是有margin或者padding,所以看的到是 空白?楼主参考下
    http://www.w3school.com.cn/tags/tag_iframe.asp
      

  3.   

    补充一下 我是在C#里用webbrowser打开上面的网页的 ,我在调试时查看了很多层的body里面的outHTML 都看不到黑色部分的代码 只能看到红色部分的 可是我想找的元素在黑色的部分
      

  4.   

    那是运行时嵌入的代码
    你红色部分的 <iframe ...... src = 'xxxx' 黑色部分就是运行时把 xxx的代码 嵌入进去的,
      

  5.   


    运行时的代码应该在document 的outhtml里面也可以看到吧 运行时的代码是不是就不能用document.getElementById("followBtn")获得里面的元素呢?(因为看不到)我在C#中跟踪调试时看不到那部分代码,可是用chrome浏览器的审查元素可以看到
      

  6.   

    <iframe allowtransparency="" border="0" frameborder="0" height="22" marginheight="0" marginwidth="0" scrolling="no" src="........." onload="alert(this.contentWindow.document.getElementById('followBtn').innerHTML)">这个意思?