1.布局
1 <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %> 2 3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4 <html xmlns="http://www.w3.org/1999/xhtml"> 5 <head id="Head1" > 6 <title></title> 7 <link rel="shortcut icon" href="../../themes/app/images/hxlogo.ico" /> 8 </head> 9 <frameset rows="60,*,31" cols="*" frameborder="no" border="0" framespacing="0"> 10 <frame src="/Desktop/TopFrm" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" /> 11 <frameset cols="215,*" frameborder="no" border="0" framespacing="0"> 12 <frame src="/Desktop/LeftFrm" name="leftFrame" scrolling="auto" noresize="noresize" id="leftFrame" title="leftFrame" /> 13 <frame src="" name="main" id="main" title="rightFrame" /> 14 </frameset> 15 <%-- <frame src="Footer.aspx" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" title="bottomFrame" />--%> 16 17 <noframes> 18 <body> 19 <form id="form1" > 20 <div> 21 22 </div> 23 </form> 24 </body> 25 </noframes> 26 </frameset> 27 </html>
2.top
1 <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %> 2 3 <!DOCTYPE html> 4 5 <html> 6 <head runat="server"> 7 <meta name="viewport" content="width=device-width" /> 8 <title></title> 9 <%-- <link href="../../Scripts/Desktop/manage/css/StyleSheet.css" rel="stylesheet" type="text/css" />--%> 10 <style type="text/css"> 11 body 12 { 13 font-family: 'lucida grande' ,tahoma,arial,sans-serif; 14 font-size: 11px; 15 margin: 0; 16 } 17 #header 18 { 19 border-bottom: 1px solid #a3bde5; 20 height: 58px; 21 right: auto; 22 left: 0px; 23 top: 0px; 24 margin: 0px; 25 background-image: -moz-linear-gradient(center top , #f3f6fc, #cbdaf0); 26 border-bottom: 1px solid #a3bde5; 27 28 } 29 #header h1 30 { 31 font-size: 22px; 32 color: #00479d; 33 font-weight: bold; 34 padding: 0px; 35 margin-top: 11px; 36 margin-left: 2px; 37 float: left; 38 } 39 </style> 40 </head> 41 <body> 42 <div id="header"> 43 <span> 44 <img src="../../themes/app/images/logo.png" style="float: left; margin-left: 10px; margin-top: -15px;" alt="" /> 45 </span> 46 <h1></h1> 47 <span style="float: left; clear: left;"><a href="#" style="display: none;">修改密码</a> 48 <asp:LinkButton ID="LinkButton1" Visible="false" runat="server">清空缓存</asp:LinkButton></span> 49 <span style="float: right; margin-right: 10px; margin-top: -15px;"> 50 <span style="color: #000000"> 51 <a href="/Desktop/<%=ViewData["ui"] %>">返回首页</a> 欢迎 52 <a id="userInfo" class="linkUser"><%=ViewData["name"]%></a> 53 </span> 54 <span id="spanPageDate">今天是<%=DateTime.Now.ToString("yyyy年MM月dd日") %></span> 55 <%=System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.GetDayName(DateTime.Now.DayOfWeek)%> 56 <a href="javascript:logout();">注销</a></span> 57 </div> 58 59 <form id="form1" runat="server"> 60 <div> 61 </div> 62 </form> 63 </body> 64 65 </html>