我有一个这样设计的 ASP.net 页面,如下所示:
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="MyAccount.aspx.cs" Inherits="MyAccount" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<div style="width: 100%; height:100%;">
<div style="float: left; height:100%; width: 80%;">
xxxx
<!-- Set Div As your requirement -->
</div>
<div style="float: right; width: 20%; height:100%; margin-left: 10px;">
<asp:Menu dir="rtl" ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="false" IncludeStyleBlock="false" Orientation=Vertical>
<Items>
<asp:MenuItem NavigateUrl="~/Default.aspx" Text="xxxxxxxxxxxxxx"/>
<asp:MenuItem NavigateUrl="~/About.aspx" Text="yyyyyyyyyyyyyy "/>
</Items>
</asp:Menu>
<!-- Set Div As your requirement -->
</div>
</div>
</asp:Content>
我希望用户选择任何菜单项,并在左侧 div 中显示页面。
任何想法?