19软件网页期末考试

本次19软件网页期末考试涵盖了HTML和CSS的相关知识,主要包含两个考题:一是关于网页播放器的实现,二是其他相关题目。通过对这两个部分的考察,旨在检验学生对网页布局和样式控制的掌握程度。
摘要由CSDN通过智能技术生成

考试题一

关于播放器

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			.a1{
				width: 500px;
				height: 500px;
				background-image: linear-gradient(0deg,#6d4681,#e5bbff,#543b5b);
			    margin: 0 auto;
				padding: 100px;
				box-sizing: border-box;
			}
			.a2{
				width: 300px;
				height: 300px;
				background-image: linear-gradient(0deg,#904f76,#4f2e4a);
				border-radius: 30px;
				margin: 0 auto;
				box-sizing: border-box;
				padding: 50px;
			}
			.a3{
				width: 200px;
				height: 200px;
				background-image: linear-gradient(0deg,#efb540,#a2526a);
				border: 20px solid black;
				box-sizing: border-box;
				border-radius: 20px;//圆角角度
				margin: 0 auto;
				padding: 25px;
			}
			.a4{
				width: 100px;
				height: 100px;
				border-radius: 50px;
				background-color: white;
				margin: 0 auto;
				box-sizing: border-box;
				padding: 25px;
			}
			.a5{
				width: 0px;
				height: 0px;
				border: 30px solid ;
				margin: 0 15px;
				border-color: transparent transparent transparent black;  
			}
		</style>
	</head>
	<body>
		<div class="a1">
			<div class="a2">
				<div class="a3">
					<div class="a4">
						<div class="a5">
							
						</div>
					</div>
				</div>
			</div>
		</div>
	</body>
</html>

考试播放器

考试题二

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			.a1{
				height: 500px;
				width: 500px;
				margin: 10px auto;
			}
			.b2{
				height: 100px;
				background-color: red;
				text-align: center;
				color: yellow;
				margin: 5px auto;
			}
			.c3{
				height: 300px;
				width: 290px;
				border: 1px solid darkred;
				float: left;
				margin: 0px  2px 0px 0px;
			}
			.d4{
				height: 300px;
				width: 200px;
				border: 1px solid darkred;
				float: right;
				text-align: right;
				
			}
			.e5{
				height: 80px;
				width: 500px;
				margin: 5px auto;
				background-color: greenyellow;
				float: right;
				text-align: center;
				line-height: 80px;
			}
			p{
				margin: 0;
			}
		</style>
	</head>
	<body>
		<div class="a1">
			<div class="b2">头部区域</div>
			<div class="c3"><p align="left"></p></div>
			<div class="d4"><p align="right"></p></div>
			<div class="e5">版权所有</div>
		</div>
	</body>
</html>

试题二答案

  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值