当前位置: 代码迷 >> ASP.NET >> 横向menu控件菜单有关问题(急)
  详细解决方案

横向menu控件菜单有关问题(急)

热度:5247   发布时间:2013-02-26 00:00:00.0
横向menu控件菜单问题(急啊)
横向menu控件菜单的下拉菜单被frame档住
请如何设置才能不被挡住

------解决方案--------------------------------------------------------
创建一个页面比如A.aspx,在该页面的上半部分放menu,在下半部分嵌入一个iframe框架,在此框架中放菜单所要导航的目的页面:
<%@ Page Language= "C# " EnableViewState= "false " AutoEventWireup= "true " CodeFile= "Top.aspx.cs " Inherits= "Admin_Top " %>
<!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 runat= "server ">
<title> </title>
</head>
<body>
<form id= "form1 " runat= "server ">

<div id= "topheadermenu ">
<asp:SiteMapDataSource ID= "SiteMapDataSource1 " SiteMapProvider= "AdminSiteMap " runat= "server " ShowStartingNode= "false "/>
<asp:Menu ID= "Menu1 " Target= "mainFrame " runat= "server " Orientation= "Horizontal " >

</asp:Menu>
</div>
<iframe name= "mainFrame " width= "100% " src= "MyInfo/MyInfoView.aspx " height= "2200px " scrolling= "no " frameborder= "0 ">
</iframe>
</form>
</body>
</html>
  相关解决方案