HTML设计个人网站UI

该文描述了如何设计一个个人网站,采用了左右布局,左侧为文字内容,右侧为登录表单。通过HTML和CSS实现动态效果,如文字弹出,以及背景图片和表单元素的样式设定。此外,还设置了输入框和提交按钮的样式,并添加了动画效果使文字逐渐显示。
摘要由CSDN通过智能技术生成

思路:

1.设计网页布局

   采用左右布局即左为文字,右为表单

2.设计网页动画

   设计文字弹出

3.通过html 和css实现内容

实践:

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<link rel="icon" href="UIicon.icon">
		<title>个人网站搭建</title>
		<style>
			body{
				background-color: antiquewhite;
				background-image: url('space.jpg');
				background-repeat: no-repeat;
				background-size: cover;
			}
			a{
				outline: none;
				color: white;
				text-decoration: none;
				margin-left: 10%;
			}
			
			a:hover{
				color: lawngreen;
			}
			img{
				float: left;
				margin-left: 30%;
			}
			
			/* css content */
			/* 设置表格 */
			.form{
				margin: 0 auto;
				width: 370px;
				height: 600px;
				background-color: white;
				margin-top: 8%;
				margin-right: 5%;
				border-radius: 20px 20px 20px 20px;
				
			}
			
			.text{
				display: block;
				padding-top: 10px;
				padding-left: 50px;
				
			}
			#username{
				font-size: 25px;
				border-style: none;
				background-color: white;
				border-bottom: 1px solid black;
				outline: none;
				margin-top: 20%;
				text-align: center;
			}
			#password{
				font-size: 25px;
				border-style: none;
				background-color: white;
				border-bottom: 1px solid black;
				outline: none;
				margin-top: 20%;
				text-align: center;
			}
			
			#submit{
				width: 100px;
				height: 50px;
				font-size: 20px;
				margin-top: 30%;
				margin-left: 40%;
				background-color: orange;
				border: none;
				
			}
			
			/* 设置左方的文字 */
			.content{
				width: 50%;
				height: 100%;
				float: left;
				color: white;
				
			}
			.content h1{
				color: white;
				font-size: 70px;
				margin-left: 10%;
			}
			.content h3{
				color: white;
	            font-size: 20px;
				margin-left: 10%;
			} 
			/* 文字动画效果实现 */
			
			.content{
				animation: test 0.8s;
			}
			@keyframes test{
				0%{
					opacity: 0;
					transform: translate(0px,30px);
				}
				33%{
					opacity: 0.3;
					transform: translate(0px,20px);
				}
				66%{
					opacity: 0.6;
					transform: translate(0px,10px);
				}
				100%{
					opacity: 1;
					transform: translate(0px,0px);
				}
			}
		.guest{
			color: blue;
			margin-left: 168px;
		}
			
		</style>
	</head>
	<body>
		<div class="left">
			
			<div class="content">
				<h1>欢迎使用个人网站UI系统</h1>
				<h3>关注博主csdn获取更多有趣内容</h3>
				<a href="https://blog.csdn.net/dogxixi?spm=1000.2115.3001.5343">alphamilk的csdn博客</a>
			</div>
			
		</div>
		<div class="form">
			<img src="./UIicon - 副本.png" alt="" class="head">
			<form action="post">
				<span class="text"><input type="text" id="username"></span>
				<span class="text"><input type="password" id="password"></span>
				<span class="submit"><input type="submit" id="submit" value="sign up"></span>
			</form>
			
			<a href="" class="guest">游客登陆</a>
		</div>
		
	</body>
</html>

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Alphamilk

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值