作业一 用户注册界面
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<from action="https://www.baidu.com/index.php?tn=monline_3_dg" method="post">
<table align="center" height="300px" width="300px"; border="1px">
<tr bgcolor="grey">
<td colspan="2" align="center">用户注册</td>
</tr>
<tr>
<td>用户名</td>
<td><input type="text" maxlength="20px" name="UserName"></td>
</tr>
<tr>
<td>密码</td>
<td><input type="text" maxlength="20px" name="UserPass"></td>
</tr>
<tr>
<td>性别</td>
<td><input type="radio" maxlength="20px" name="sex" value="1" checked>男
<input type="radio" name="sex" value="0">女
</td>
</tr>
<tr>
<td align="right">爱好</td>
<td align="left"><input type="checkbox" name="like" value="write">
写作<input type="checkbox" value="music">听音乐
<input type="checkbox" value="pe">体育
</td>
</tr>
<tr>
<td align="right">省份</td>
<td align="left"><select name="province">
<option value="shanxi">陕西省</option>
<option value="shanxi ">山西省</option>
<option value="dongbei">东北省</option>
<option value="hubei">湖北省</option>
<option value="jiangxi">江西省</option></select>
</td>
</tr>
<tr>
<td align="right">自我介绍</td>
<td align="left"><textarea name="intro" cols="25" rows="5" placeholder="nothing"></textarea></td>
</tr>
<tr>
<td align="center" colspan="2"><input type="submit" name="send" value="提交">
<button type="reset" naem="reset">重置</button></td>
<td align="left"></td>
</tr>
</table>
</from>
</body>
</html>
效果展示
作业二 电子汇款单
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<h1>工商银行电子汇款单</h1>
<table border="1" height="500px" width="800px">
<thead>
<tr>
<th colspan="2">回单类型</th>
<td colspan="2">网上特惠转账</td>
<td>指令序号</td>
<th colspan="3">8888888888888888888</th>
</tr>
</thead>
<tbody>
<tr>
<th rowspan="4" width="10px">收<br>款<br>人</th>
<td>户名</td>
<td colspan="1">张三</td>
<th rowspan="4" width="10px">付<br>款<br>人</th>
<td>户名</td>
<td>李四</td>
</tr>
<tr>
<td>卡号</td>
<td>000000000000000000</td>
<td>卡号</td>
<td>000000000000000000</td>
</tr>
<tr>
<td>地区</td>
<td>上海</td>
<td>地区</td>
<td>北京</td>
</tr>
<tr>
<td>网点</td>
<td>江苏业务中心</td>
<td>网点</td>
<td>上海业务中心</td>
</tr>
<tr>
<td colspan="2">币种</td>
<td>人名币</td>
<td colspan="2">描绘便准</td>
<td>钞票</td>
</tr>
<tr>
<td colspan="2">金额</td>
<td>1000000</td>
<td colspan="2">手续费</td>
<td>10</td>
</tr>
<tr>
<td colspan="2">合计</td>
<td colspan="4">人名币</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="2">交易时间</td>
<td>12:00:00</td>
<td colspan="2">时间戳</td>
<td>234235345363534564</td>
</tr>
</tfoot>
<table>
<p>票据打印时间 2012:23:12</p>
<p><del>票据打印单位</del></p>
<p>操作员:王五</p>
</body>
</html>
效果展示
作业三 诗词展示
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
.box{
width:50%;
float:right;
font-size:25px;
line-height: 60px;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}
.box1{
font-size: 50px;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
text-align: center;
}
</style>
</head>
<body>
<div class="box1">
将进酒·李白
</div>
<div class="box" style="float:right" >
<br>
<br>
君不见黄河之水天上来,奔流到海不复回。<br>
君不见高堂明镜悲白发,朝如青丝暮成雪。<br>
人生得意须尽欢,莫使金樽空对月。<br>
天生我材必有用,千金散尽还复来。<br>
烹羊宰牛且为乐,会须一饮三百杯。<br>
岑夫子,丹丘生,将进酒,杯莫停。<br>
与君歌一曲,请君为我倾耳听。<br>
钟鼓馔玉不足贵,但愿长醉不复醒。<br>
古来圣贤皆寂寞,惟有饮者留其名。<br>
陈王昔时宴平乐,斗酒十千恣欢谑。<br>
主人何为言少钱,径须沽取对君酌。<br>
五花马、千金裘,呼儿将出换美酒,<br>
与尔同销万古愁。<br>
</div>
<div class="box" style="float: left">
<br>
<img src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fss2.meipian.me%2Fusers%2F9054903%2F10b65e8244664396bfcc174c5a237bc1.jpeg%3Fmeipian-raw%2Fbucket%2Fivwen%2Fkey%2FdXNlcnMvOTA1NDkwMy8xMGI2NWU4MjQ0NjY0Mzk2YmZjYzE3NGM1YTIzN2JjMS5qcGVn%2Fsign%2Fd5bbff02215c6a8ee52ad71719f18e4d.jpg&refer=http%3A%2F%2Fss2.meipian.me&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1723017018&t=564df88e5ffdb6626e42a6eea25e4beb"></img>
</div>
</body>
</html>
效果展示
作业四 电影网页
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>电影网站</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f0f0f0;
}
header {
background-color: #333;
color: #fff;
padding: 10px 0;
text-align: center;
}
nav {
background-color: #444;
text-align: center;
padding: 5px 0;
}
nav a {
color: #fff;
text-decoration: none;
padding: 10px 20px;
display: inline-block;
}
nav a:hover {
background-color: #555;
}
.container {
width: 100%;
margin: auto;
overflow: hidden;
padding: 10px 0;
}
.movie {
float: left;
width: 21%;
margin: 2%;
background: #fff;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
text-align: center;
transition: transform 0.3s;
}
.movie:hover {
transform: scale(1.05);
}
.movie img {
width: 100%;
height: auto;
}
.movie h3 {
margin: 10px 0;
font-size: 1.5em;
}
footer {
text-align: center;
padding: 10px 0;
background-color: #333;
color: #fff;
position: fixed;
bottom: 0;
width: 100%;
}
</style>
</head>
<body>
<header>
<h1>欢迎来到电影世界</h1>
</header>
<nav>
<a href="https://v.qq.com/channel/choice">首页</a>
<a href="https://v.qq.com/channel/movie">最新电影</a>
<a href="https://www.douban.com/doulist/123889297/">经典电影</a>
<a href="#">关于我们</a>
</nav>
<div class="container">
<div class="movie">
<a href="https://v.qq.com/x/cover/r9umzdo0yjelfg1/n0030x2ucda.html"><img src="https://i2.hdslb.com/bfs/archive/7c84eb015d5630089f91a88790c460d1f505bc86.jpg" alt="电影海报"></a>
<h3>绿皮书</h3>
<p>世界上太多孤独的人害怕踏出第一步</p>
</div>
<div class="movie">
<a href="https://v.qq.com/x/cover/qrcim9c1l5wzml8/l0020jesrh0.html"><img src="https://i1.hdslb.com/bfs/archive/7e7f9fee17729f352b27843a736cb75cea3351c0.jpg" alt="电影海报"></a>
<h3>白日梦想家</h3>
<p>青春永驻,骑马少年</p>
</div>
<div class="movie">
<a href="https://v.qq.com/x/cover/fs8ec41735i3cc0/d00322glwwt.html"><img src="https://tukuimg.bdstatic.com/processed/c9197c1ae944652101c7429c192fbd79.jpeg" alt="电影海报"></a>
<h3>爆裂鼓手</h3>
<p>不疯魔,不成活</p>
</div>
<div class="movie">
<a href="https://v.qq.com/x/cover/mhl665xf8ina3t2/k0024erhg9j.html"><img src="https://img1.baidu.com/it/u=3171680717,3675543096&fm=253&fmt=auto&app=138&f=JPEG?w=751&h=500" alt="电影海报"></a>
<h3>心灵捕手</h3>
<p>那些不完美才是两个人在一起的决定因素</p>
</div>
</div>
<footer>
<p>© 2024 电影网站. 版权所有.</p>
</footer>
</body>
</html>
效果展示