【慕课网】前端零基础入门---步骤二:页面化妆师CSS---08-项目:网页布局案例

08-项目:网页布局案例

1-1

在这里插入图片描述
电脑:E:前端工程师—前端零基础入门—步骤二:页面化妆师CSS—08-项目:网页布局案例----1
u盘:前端工程师—前端零基础入门—步骤二:页面化妆师CSS—08-项目:网页布局案例----1

1-2

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

<!DOCTYPE html>
<html>
<head>
	<title>3</title>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
	<style type="text/css">
		*{
			margin: 0;
			padding: 0;
		}
		img{
			width: 380px;
			height: 240px;
		}
		.zhezhao{
			position: absolute;
			width: 380px;
			height: 240px;
			top: 0;
			left: 0;
			background-color: black;
			z-index: 1;
			opacity: 0.5;
		}
	</style>
</head>
<body>
	<div>
		<img src="https://climg.mukewang.com/58f829ca00010be703840240.jpg">
	</div>
	<div class="zhezhao"></div>
</body>
</html>

1-3

在这里插入图片描述
在这里插入图片描述

<!DOCTYPE html>
<html>
<head>
	<title>3</title>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
	<style type="text/css">
		.box{
			width: 500px;
			height: 200px;
			margin: 0 auto;
			border: 1px solid #aaa;
			background-color: #ababab;
			color: #fff;
			font-weight: bolder;
			position: relative;
		}
		.box div{
			width: 300px;
			height: 46px;
			text-align: center;
			position: relative;
			top: 50%;
			margin-top: -23px;
			left: 50%;
			margin-left: -150px;
		}
	</style>
</head>
<body>
	<div class="box">
		<div>
			欢迎大家来到慕课网学习!<br>
			来到慕课网学习!
		</div>
	</div>
</body>
</html>

1-4

在这里插入图片描述
在这里插入图片描述

<!DOCTYPE html>
<html>
<head>
	<title>3</title>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
	<style type="text/css">
		*{
			margin: 0;
			padding: 0;
		}
		.box{
			width: 1000px;
			text-align: center;
			margin: 0 auto;
		}
		.box .box1{	
			padding-top: 30px;
			font-family: "微软雅黑";
			padding-bottom: 10px;
			font-size: 20px;
		}
		.box .box2{
			overflow: hidden;
			zoom:1;
		}
		.box .box2 dl{
			width: 470px;
			float: left;
			margin: 5px 3px;
		}
		.box .box2 dl dd{
			padding-top: 20px;
		}
	</style>
</head>
<body>
	<div class="box">
		<div class="box1">ENJOY&nbsp;&nbsp;THE&nbsp;&nbsp;LIFE</div>
		<div class="box2">
			<dl>
				<dt><img src="http://climg.mukewang.com/58f829090001a4b504260240.jpg"></dt>
				<dd>Life is like a book, just read more and more refined, more write more carefully. When read, mind open, all things have been indifferent to heart. Life is the precipitation.</dd>
			</dl>
			<dl>
				<dt><img src="http://climg.mukewang.com/58f8290f0001558804260240.jpg"></dt>
				<dd>Life is like a book, just read more and more refined, more write more carefully. When read, mind open, all things have been indifferent to heart. Life is the precipitation.</dd>
			</dl>
		</div>
	</div>
</body>
</html>

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值