HTML5+CSS练习题-3

<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			* {
				margin: 0;
				padding: 0;
			}
			a {text-decoration: none;}
			body {
				background:url(b-ssl.duitang-2.jpeg);
				background-size: cover;
				background-repeat:no-repeat ;
				background-attachment: fixed;
			}
			.content {
				width: 900px;
				height: 500px;
				margin: 200px auto 0 auto;
				border-radius: 10px;
				background-color: whitesmoke;
				transition: all 1.0s;
				opacity: 0.7;
			}
			.content img {
				float: left;
				width: 200px;
				height: 200px;
				margin: 150px 0 0 80px;
				border-radius: 100px;
			}
			.content:hover {
				box-shadow: 0px 0px 20px orange;
			}
			.content_r {
				float: right;
				width: 500px;
				margin: 80px 60px 0 0;
				/*background-color: pink;*/
			}
			.content_l {
				float: left;
				width: 100%;
				text-align: center;
			}
			.content_l h5 {font-size: 17px;}
			.c {
				margin-top: 10px;
				color: #1F2023;
				font-size: 18px;
			}
			.zff_1 {
				color: #4855EC;
				font-size: 18px;
			}
			.ljl {
				color: deeppink;
			}
			.yyy {
				margin-top: 30px;
			}
			.yyy a {
				display: block;
				float: left;
				width: 120px;
				height: 45px;
				margin: 5px 5px 0 0;
				/*	padding: 0 15px;*/
				color: #fff;
				line-height: 45px;
				transition: all 0.8s;
				/*	background-color: deeppink;*/
			}
			.yyy a:hover {background-color:palevioletred;}
			.ljl_1 {background-color: deeppink;}
			.h {background-color: dodgerblue;}
			.m {background-color: magenta;}
			.o {background-color: orange;}
			.b{background-color: darkgreen;}
		</style>
	</head>
	<body>
		<div class="content">
			<img src="mmexport1641303021273.jpg" alt="">
			<div class="content_r wy">
				<div class="content_l wy">
					<h2>Hi~ 我是小汤圆, Welcome here !</h2>
					<p class="c">欢迎来到我的主页,一位热爱编程的小渣渣~</p>
					<p class="c">爱好计算机,会去自学一些感兴趣的东西 !</p>
					<br>
					<p class="zff_1">All things come to those who wait.</p>
					<p class="zff_1">  苍天不负有心人</p>
					<br>
					<p class="ljl">永远不要低估你改变自我的能力!</p>
					<p class="ljl">Never underestimate your power to change yourself!</p>
					<div class="yyy">
						<a href="#" class="h">官网</a>
						<a href="https://baike.baidu.com/item/%E7%8E%8B%E6%BA%90/5475062?fr=aladdin" class="b">QQ群</a>
						<a href="https://baike.baidu.com/item/%E7%8E%8B%E6%BA%90/5475062?fr=aladdin" class="m">个人博客</a>
						<a href="https://baike.baidu.com/item/%E7%8E%8B%E6%BA%90/5475062?fr=aladdin" class="o">网易云音乐</a>
					</div>
				</div>
			</div>
		</div>
	</body>
</html>

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值