C# 如何用GetElementByTagName 遍历框架结构子页面内元素
html 首页代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>11111111111111管理系统</title>
<meta name="renderer" content="webkit">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.cookie.js"></script>
<script type="text/javascript">
$(document).ready(function () {
var href = $.cookie("ViewPage");
if (href)
$("frame[name='mainFrame']").attr("src", href);
});
function hide() {
$("#fraMain").attr("cols", "0,8px,*");
}
function show() {
$("#fraMain").attr("cols", "130px,8px,*");
}
</script>
</head>
<frameset rows="50px,*, 50px" height="100%" frameborder="0" framespacing="0">
<frame id="fraTop" name="top" src="top.aspx" frameborder="0" scrolling="no">
<frameset id="fraMain" cols="130px,8px,*" height="100%" frameborder="0" framespacing="0">
<frame name="left" src="left.aspx" frameborder="0" scrolling="auto" noresize="noresize" margwidth="0" margheight="0" style="border-right: solid 1px #B1CAE8">
<frame name="btn" src="LeftBtn.aspx" frameborder="0" scrolling="no" noresize="noresize">
<frame name="mainFrame" src="Home.aspx" frameborder="0" scrolling="auto" noresize="noresize">
</frameset>
<frame name="bottom" src="bottom.aspx" frameborder="0" scrolling="no">
</frameset>
</html>