div中用IFRAME的问题
代码如下:
<div id= "pagebody ">
<div id= "left "> <div id= "user_info " > </div>
<div id= "user_info1 ">
<ul>
<li>
<a href= "left.aspx " target= "text "> 测试1 </a>
</li> <li>
<a href= "right.aspx " target= "text "> 测试2 </a>
</li> </ul>
</div>
<div id= "user_info2 " style= " "> <ul>
<li> 测试3
</li> <li> 测试4
</li> </ul> </div>
</div>
<div id= "MainBody ">
<ul>
<li >
<IFRAME id=BoardTitle
name=menu frameBorder=0 target= "text "> </IFRAME>
</li>
</ul>
</div>
</div>
为什么点了连接后,是弹出新页面,不是到框架里
------解决方案-------------------- <a href= "right.aspx " target= "menu "> 测试2 </a>
------解决方案-------------------- <a href= "javascript:document.getElementById( "BoardTitle ").href=right.aspx "> 测试2 </a>