实验二 ASP。NET 4.5 网站开发基础
一、实验名称:ASP。NET 4.5 网站开发基础
二、实验内容:
1. 建立一个描述 MyPetShop 网站信息的 XHML5 文件
〈!DOCTYPE html〉
〈html xmlns=”http://www.w3.org/1999/xhtml”>
〈head〉
〈meta http-equiv=”Content—Type" content=”text/html; charset=utf—8”/〉
<meta name="keywords” content="MyPetShop,XHTML5"/>
〈title〉〈/title>
<style type =”text/css”>
aside{float:left ;width :15%;}
section{float:right ;width :85%;}
footer{clear :both ;}
〈/style〉
</head〉
〈body〉
<header〉
〈img alt =”MyPetShop” src ="F:/web程序设计/Experiment1/Experiment1/2013。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是本书提供的一个综合实例,用来展示ASP。NET 4。5网络开发技术。
</article〉
〈article〉
〈h4〉MyPetShop</h4〉
MyPetShop包括前台商品浏览、用户管理、购物车、订单结算和后台管理等模块。
〈/article〉
</section>
〈footer style =”background—color:#C0C0C0">Copyright 2014 MyPetShop</footer〉
〈/body〉
〈/html〉
2. 利用 table 实现页面布局
〈%@ Page Language=”C#" AutoEventWireup="true” CodeFile=”TableLayout.aspx。cs"
Inherits="TableLayout" %>
评论0