好久都没有写文章了,今天的代码是在实验课上面敲的
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="1.aspx.vb" Inherits="_1" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
<meta name="keywords" content="MyPetShop, XHTML5"/>
</head>
<body>
<header>
<img alt="MyPetShop" src="../Image/logo.gif" />
</header>
<aside>
<nav style="background-color: #C0C0C0">
<a href="HTML5.html">介绍</ a><br />
<a href="HTML5.html">数据库设计</ a>
</nav>
</aside>
<section>
<h3>MyPetShop</h3>
<article>
MyPetShop是本书提供的一个web应用程序,用来展示基于ASP.NET三层架构的web应用程序开发技术
</ article>
<article>
<h4>功能模块</h4>
MyPetShop包括前台商品浏览、用户管理、购物车、订单结算、后台管理等模块。
</ /article>
</ section>
<footer style="background-color:#C0C0C0">Copyright2018MyPetShop</ /footer>
<style type="text/css">
aside{float:left;width:15%}
section{float:right;width:85%}
footer{clear:both;}
</style>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="TableLayout.aspx.vb" Inherits="TableLayout" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
<style type="text/css">
.auto-style1 {
width: 100%;
}
.auto-style2 {
height: 20px;
}
.auto-style3 {
height: 20px;
width: 66px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
<table class="auto-style1">
<tr>
<td rowspan="2"> </td>
<td id="lnkbtnDefault" class="auto-style3">
<asp:LinkButton ID="LinkButton2" runat="server">首页</asp:LinkButton>
</td>
<td class="auto-style2">
<asp:LinkButton ID="LinkButton3" runat="server">注册</asp:LinkButton>
</td>
<td class="auto-style2">
<asp:LinkButton ID="LinkButton1" runat="server">登录</asp:LinkButton>
</td>
<td class="auto-style2">
<asp:LinkButton ID="LinkButton4" runat="server">购物车</asp:LinkButton>
</td>
<td class="auto-style2">
<asp:LinkButton ID="LinkButton5" runat="server">网站地图</asp:LinkButton>
</td>
</tr>
<tr>
<td class="auto-style2" colspan="5">登录状态</td>
</tr>
<tr>
<td colspan="6">您的位置:</td>
</tr>
</table>
</form>
</body>
</html>
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="TableLayout.aspx.vb" Inherits="TableLayout" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<style type="text/css">
.auto-style1 {
width: 100%;
}
.auto-style2 {
height: 20px;
}
.auto-style3 {
height: 20px;
width: 66px;
}
</style>
<style>
a {
text-decoration: none;
}
</style>
</head>
<body style="background-color: #616378; font-size: 12px; text-align: center; margin: 0px">
<form id="form1" runat="server">
<div>
</div>
<table class="auto-style1" style="background-color: #fff; margin: 0px; height: 86px; text-align: left; width: 778px; padding: 4px 2px 2px 10px">
<tr>
<td class="auto-style3" rowspan="2"> </td>
<td id="lnkbtnDefault" class="auto-style3" style="background-color: #8c8ea3; text-align: center; width: 96.4px">
<asp:LinkButton ID="LinkButton2" runat="server" ForeColor="White">首页</asp:LinkButton>
</td>
<td class="auto-style2">
<asp:LinkButton ID="LinkButton3" runat="server" ForeColor="White">注册</asp:LinkButton>
</td>
<td class="auto-style2">
<asp:LinkButton ID="LinkButton1" runat="server" ForeColor="White">登录</asp:LinkButton>
</td>
<td class="auto-style2">
<asp:LinkButton ID="LinkButton4" runat="server" ForeColor="White">购物车</asp:LinkButton>
</td>
<td class="auto-style2">
<asp:LinkButton ID="LinkButton5" runat="server" ForeColor="White">网站地图</asp:LinkButton>
</td>
</tr>
<tr>
<td class="auto-style2" colspan="5" style="background-color: #666688; color: #fff">登录状态</td>
</tr>
<tr>
<td colspan="6" style="background-color: #ccccd4; margin: 0px; padding-left: 6px; text-align: left; width: 778px">您的位置:</td>
</tr>
</table>
</form>
</body>
</html>
a {
text-decoration: none;
}
body {
background-color: #616378;
font-size: 12px;
margin: 0px;
text-align:center;
}
table {background-color:#fff:height:86px;magin:0 auto;
padding:4px 2px 2px 10px;text-align:left;width:778px;
}
.navigation {
background-color:#8c8ea3;text-align:center;width:96.4px;}
.status {
background-color:#666688;color:#fff;}
.position {
background-color:#ccccd4;margin:0 auto;padding-left:6px;text-align:left;width:778px;}
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="TableLayout.aspx.vb" Inherits="TableLayout" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<style type="text/css">
.auto-style1 {
width: 100%;
}
.auto-style2 {
height: 20px;
}
.auto-style3 {
height: 20px;
width: 66px;
}
</style>
<style>
a {
text-decoration: none;
}
</style>
<link href="../Styles/Table.css" rel="stylesheet" type="text/css" />
</head>
<body style="background-color: #616378; font-size: 12px; text-align: center; margin: 0px">
<form id="form1" runat="server">
<div>
</div>
<table class="auto-style1" style="background-color: #fff; margin: 0px; height: 86px; text-align: left; width: 778px; padding: 4px 2px 2px 10px">
<tr>
<td class="navigation" rowspan="2"> </td>
<td id="lnkbtnDefault" class="navigation" style="background-color: #8c8ea3; text-align: center; width: 96.4px">
<asp:LinkButton ID="LinkButton2" runat="server" ForeColor="White">首页</asp:LinkButton>
</td>
<td class="navigation">
<asp:LinkButton ID="LinkButton3" runat="server" ForeColor="White">注册</asp:LinkButton>
</td>
<td class="navigation">
<asp:LinkButton ID="LinkButton1" runat="server" ForeColor="White">登录</asp:LinkButton>
</td>
<td class="navigation">
<asp:LinkButton ID="LinkButton4" runat="server" ForeColor="White">购物车</asp:LinkButton>
</td>
<td class="navigation">
<asp:LinkButton ID="LinkButton5" runat="server" ForeColor="White">网站地图</asp:LinkButton>
</td>
</tr>
<tr>
<td class="navigation" colspan="5" style="background-color: #666688; color: #fff">登录状态</td>
</tr>
<tr>
<td colspan="6" style="background-color: #ccccd4; margin: 0px; padding-left: 6px; text-align: left; width: 778px" class="navigation">您的位置:</td>
</tr>
</table>
</form>
</body>
</html>
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="CloseWindow.aspx.vb" Inherits="Ex2_CloseWindow" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<a href="/" onclick="javascript:window.close();return false;">关闭</a>
<asp:Button ID="btnClose" runat="server" OnClientClick=""javascript:window.close();return false;"" Text="Button" />
</div>
</form>
</body>
</html>