有个页面,代码类似如下:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<input type="hidden" name="username" id="username" value="" />
<frameset id="MainFrame" cols="0,0,*" border="0" frameSpacing="0" frameborder="no">
<frame id="left" name="left" src="left.php" noresize scrolling="no" style="padding-left:20px;">
<frame id="action" name="action" src="right.php" noresize scrolling="no">
</frameset>
</html>在IE下面frame子页面是可以获取<input type="hidden" name="username" id="username" value="" />的内容,但是在firefox下面发现为null,然后用firebug看看,发现会把<input type="hidden" name="username" id="username" value="" />这段内容(估计是过滤了frameset之外的东西).如果要解决这个问题,不知道有没有什么好的办法.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<input type="hidden" name="username" id="username" value="" />
<frameset id="MainFrame" cols="0,0,*" border="0" frameSpacing="0" frameborder="no">
<frame id="left" name="left" src="left.php" noresize scrolling="no" style="padding-left:20px;">
<frame id="action" name="action" src="right.php" noresize scrolling="no">
</frameset>
</html>在IE下面frame子页面是可以获取<input type="hidden" name="username" id="username" value="" />的内容,但是在firefox下面发现为null,然后用firebug看看,发现会把<input type="hidden" name="username" id="username" value="" />这段内容(估计是过滤了frameset之外的东西).如果要解决这个问题,不知道有没有什么好的办法.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货