各位大虾,如下是某网页的一个框架中包含的代码?为什么我在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>
还有 #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>
http://www.w3school.com.cn/tags/tag_iframe.asp
你红色部分的 <iframe ...... src = 'xxxx' 黑色部分就是运行时把 xxx的代码 嵌入进去的,
运行时的代码应该在document 的outhtml里面也可以看到吧 运行时的代码是不是就不能用document.getElementById("followBtn")获得里面的元素呢?(因为看不到)我在C#中跟踪调试时看不到那部分代码,可是用chrome浏览器的审查元素可以看到