寒假第10页作业

1

<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>带按钮的图片横幅广告</title>
		<style>
			.text1{
				border: 1px solid black;
				width: 20px;
				height: 20px;
				position: absolute;
				text-align: center;
			}
			img{
				width: 450px;
				height: 150px;
			}
			.text2{
				position: relative;
			}
			div div:nth-of-type(2){
				left:300px;
				bottom: 10px;
				background-color: white;
			}
			div div:nth-of-type(3){
				left:330px;
				bottom: 10px;
				background-color: white;
			}
			div div:nth-of-type(4){
				left:360px;
				bottom: 10px;
				background-color: white;
			}
			div div:nth-of-type(5){
				left:390px;
				bottom: 10px;
				background-color: white;
			}
			div div:nth-of-type(6){
				left:420px;
				bottom: 10px;
				background-color: white;
			}
			a{
				text-decoration: none;
			}
			a:hover{
				background-color:red;
			}
			p{
				color: red;
				font-size: 50px;
			}
		</style>
	</head>
	<body>
		<div class="text2">
			<p>千万不要点数字!</p>
			<div><img src="img/adver-01.jpg"/></div>
			<div class="text1"><a href="text3.html">1</a></div>
			<div class="text1"><a href="text3.html">2</a></div>
			<div class="text1"><a href="text3.html">3</a></div>
			<div class="text1"><a href="text3.html">4</a></div>
			<div class="text1"><a href="text3.html">5</a></div>
		</div>
	</body>
</html>

2

<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>奖多多安全购彩页面</title>
		<style>
			.text2{ 
				width: 1012px;
				margin: 0px auto;
				position: relative;
			}
			div img:nth-of-type(2){
				position: absolute;
				right: 250px;
				bottom: 200px;
			}
			div img:nth-of-type(3){
				position: absolute;
				left: 250px;
				bottom: 200px;
			}
			div img:nth-of-type(4){
				position:fixed;
				right: 0px;
				top: 300px;
			}
			div img:nth-of-type(5){
				position: fixed;
				right: 0px;
				bottom:0px;
			}
		</style>
	</head>
	<body>
		
		<div class="text2">
			<img src="img/1.bmp"/>
			<img src="img/2.bmp"/>
			<img src="img/3.bmp"/>
			<img src="img/4.bmp"/>
			<img src="img/5.bmp"/>
		</div>
	</body>
</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值