Frame 问题请教. 前边我也遇到过你这样的问题如果你用的是C#的treeview那么只要在上边选任何节点,树都会闪烁的 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 FRAME加不了用户控件.只有做成ASPX才行.问题麻烦 做个空白ASPX页面加载用户控件,FRAME加载空白的ASPX页面行吗??? ASPX页面加载用户控件,FRAME加载这个ASPX页面 TO:carson1978(天问) 那是可以.但总觉得麻烦.我想知道有没有更简单的办法.还有:有人给我说FRAME不符合W3C标准,我也不知道是怎么回事. 用FRAME嵌套的:<HTML> <HEAD> <TITLE></TITLE> <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.0"> <meta name="CODE_LANGUAGE" content="Visual Basic 7.0"> <meta name="vs_defaultClientScript" content="JavaScript"> <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> </HEAD> <frameset frameSpacing="0" rows="00,81%" frameBorder="1"> <frame name="banner" scrolling="no"> <frameset cols="150,72%"> <frame name="contents" src="a.aspx"> --左边的树 <frame name="main" src="b.aspx"> --右边的内容 </frameset> <noframes> <pre id="p2">================================================================关于完成此标题和内容框架集的说明1. 为“banner”框架添加 src="" 页的 URL。2. 为“contents”框架添加 src="" 页的 URL。3. 为“main”框架添加 src="" 页的 URL。4. 将 BASE target="main" 元素添加到“contents”页的 HEAD,以将“main”设置为默认框架,“contents”页的链接将 在该框架中显示其他页。================================================================</pre> <p id="p1"> 此 HTML 框架集显示多个 Web 页。若要查看此框架集,请使用支持 HTML 4.0 及更高版本的 Web 浏览器。 </p> </noframes> </frameset></HTML>在树 a.aspx 后面写代码就可以了...一般是操作代码,比如向b.aspx 传递参数的代码... <html><head><title>asdf</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><script>function framechange(){ if (bar.innerText==3){ bar.innerText=4 document.all("leftmenu").style.display="none" } else{ bar.innerText=3 document.all("leftmenu").style.display="" }}</script><body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" SCROLLING="no"><table width="100%" border="0" height="100%" cellpadding="0" cellspacing="0" > <tr > <td width="12%" name="leftmenu" id="leftmenu" style="display=''" valign="top" align="center"><p> </p><p><a href="#" target="bbsmain">栏目之一</a></p><p><a href="http://www.sohu.com" target="bbsmain">栏目之二</a></p><p><a href="#" target="bbsmain">栏目之三</a></p><p><a href="#" target="bbsmain">栏目之四</a></p><p><a href="#" target="_parent">栏目之五</a></p><p><a href="#" target="_parent" title="非请莫入">栏目之六</a></p></body></html></td> <!--bar start--> <td width="10" bgcolor="#CCCCCC" valign="middle" align="center"><font face="Webdings" color="#0000FF"><span id="bar" style="cursor=hand" onclick="framechange()" title="关闭/打开导航栏">3</span></font></td> <!--bar end--> <td width="100%"><center><iframe name='bbsmain' id='main' src="http://www.sina.com.cn" width="100%" height="100%" border="0" SCROLLING="no" ></iframe></center></td> </tr></table></body></html>这样?不是树形的,是隐藏式的,我自己刚刚在用! 遇到一小小问题 浮动窗口动不起来 C#里怎么控制timer控件? 关于工厂模式 程序如何中止? 如何实现生成介于两个实质之间的一个数字 socket连接gprs成功后,断线无法重连。 WinForm如何在DataGridView列中添加自定义的控件?? 关于串口通信 WPF 带连接线 popup 不用popup也行重点是那个连接线 简单的数据库更新问题 Excel和Access协同工作问题
还有:有人给我说FRAME不符合W3C标准,我也不知道是怎么回事.
<HEAD>
<TITLE></TITLE>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.0">
<meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> </HEAD>
<frameset frameSpacing="0" rows="00,81%" frameBorder="1">
<frame name="banner" scrolling="no">
<frameset cols="150,72%">
<frame name="contents" src="a.aspx"> --左边的树
<frame name="main" src="b.aspx"> --右边的内容
</frameset>
<noframes>
<pre id="p2">
================================================================
关于完成此标题和内容框架集的说明
1. 为“banner”框架添加 src="" 页的 URL。
2. 为“contents”框架添加 src="" 页的 URL。
3. 为“main”框架添加 src="" 页的 URL。
4. 将 BASE target="main" 元素添加到“contents”页的
HEAD,以将“main”设置为默认框架,“contents”页的链接将
在该框架中显示其他页。
================================================================
</pre>
<p id="p1">
此 HTML 框架集显示多个 Web 页。若要查看此框架集,请使用支持 HTML 4.0 及更高版本的 Web 浏览器。
</p>
</noframes>
</frameset>
</HTML>在树 a.aspx 后面写代码就可以了...
一般是操作代码,比如向b.aspx 传递参数的代码...
<head>
<title>asdf</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head><script>
function framechange(){
if (bar.innerText==3){
bar.innerText=4
document.all("leftmenu").style.display="none"
}
else{
bar.innerText=3
document.all("leftmenu").style.display=""
}
}
</script><body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" SCROLLING="no">
<table width="100%" border="0" height="100%" cellpadding="0" cellspacing="0" >
<tr >
<td width="12%" name="leftmenu" id="leftmenu" style="display=''" valign="top" align="center">
<p> </p><p><a href="#" target="bbsmain">栏目之一</a></p><p><a href="http://www.sohu.com" target="bbsmain">栏目之二</a></p><p><a href="#" target="bbsmain">栏目之三</a></p><p><a href="#" target="bbsmain">栏目之四</a></p><p><a href="#" target="_parent">栏目之五</a></p>
<p><a href="#" target="_parent" title="非请莫入">栏目之六</a></p>
</body>
</html>
</td>
<!--bar start-->
<td width="10" bgcolor="#CCCCCC" valign="middle" align="center"><font face="Webdings" color="#0000FF"><span id="bar" style="cursor=hand" onclick="framechange()" title="关闭/打开导航栏">3</span></font></td>
<!--bar end-->
<td width="100%"><center><iframe name='bbsmain' id='main' src="http://www.sina.com.cn" width="100%" height="100%" border="0" SCROLLING="no" ></iframe></center></td>
</tr>
</table></body></html>这样?不是树形的,是隐藏式的,我自己刚刚在用!