一、html部分代码如下
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>延安大学教学管理信息服务平台</title>
<link rel="stylesheet" href="../教务系统/index.css">
</head>
<body>
<div class="box">
<div class="box-ele"></div>
<div class="box-ele">
<div class="div-img1">
< img class="img2" src="../教务系统/xiao'hui.jpg" alt="延大校徽">
延安大学教学管理信息服务平台
</div>
<div class="div-main">
< img class="img1" src="../教务系统/左照片1.jpg" alt="延大校园">
<div class="div1">
<h3>用户登录</h3>
<form action="">
<div>
<p class="p-center">
<!-- <div class="div-use">< img src=" http://jwglxt.yau.edu.cn/zftal-ui-v5-1.0.2/assets/images/log_ic01.png" alt="用户名"></div> -->
<input class="text" type="text" name="username" placeholder="用户名">
</p >
<p class="p-center">
<!-- <div class="div-use">< img src="http://jwglxt.yau.edu.cn/zftal-ui-v5-1.0.2/assets/images/log_ic02.png" alt="密码"></div> -->
<input class="text" type="password" name="password" placeholder="密码">
</p >
<p class="p-right">
忘记密码了?
</p >
<p class="p-center">
<button type="submit">登录</button>
</p >
</div>
</form>
<div class="div2">
“圣地教务”公众号非任何学校官方公众号,请立即取消关注,谨防受骗或个人信息泄露 <br>
登录教务管理系统途径:<br>
1.访问http://jwglxt.yau.edu.cn/jwglxt <br>
2.登录学校网办大厅后选择教务系统登录
</div>
<div>
< img class="last-img" src="../教务系统/二维码.png" alt="二维码">
<div class="last-span">用手机扫一扫, <br>
安全、便捷登录</div>
</div>
</div>
</div>
</div>
<div class="box-ele"></div>
</div>
<div>
<p class="p1">版权所有:延安大学教务处 电话:0911-2650135 传真:0911-2650131 电子信箱:ydjwc@yau.edu.cn 版本V8.3.14</p >
</div>
</body>
</html>
二、css部分代码如下
.box{
display: grid;
grid-template-columns: 5% 89% 5% ;
grid-template-rows: 710px;
margin: 0;
grid-gap: 10px;
}
.p1{
text-align: center;
font-size: 14px;
color: #8099af;
margin-top: 35px;
}
.div-main{
background-color: rgba(240, 240, 240);
height: 590px;
}
.img1{
width: 950px;
height: 550px;
display: inline-block;
vertical-align: top;
margin-top: 5px;
margin-left: 15px;
}
.div1{
background-color: rgb(255, 255, 255);
width: 450px;
height: 578px;
display: inline-block;
vertical-align: top;
margin-top: 5px;
margin-left: 25px;
}
h3{
color: #333333;
margin-top: 25px;
margin-bottom: 25px;
margin-left: 20px;
}
.div2{
background-color: rgb(242, 222, 222);
color: #a94449;
width: 330px;
border-radius: 5px;
margin-left: 46px;
margin-bottom: 45px;
padding: 15px;
}
.div-img1{
height: 50px;
line-height: 50px;
font-size: 24px;
color: #1069a5;
margin-top: 40px;
margin-bottom: 40px;
}
.img2{
height: 50px;
width: 50px;
float: left;
}
.p-center{
text-align: center;
}
.p-right{
text-align: right;
margin-right: 45px;
}
a{
color: rgb(0, 118, 194);
text-decoration: none;
}
.text{
width: 350px;
height: 30px;
}
button{
color: aliceblue;
background-color: rgb(0, 118, 194);
width: 360px;
height: 40px;
border: 0;
border-radius: 5px;
}
.last-img{
margin-left: 60px;
float: left;
}
.last-span{
margin-top: 12px;
margin-left: 10px;
float: left;
}
三、界面构建展示
![](https://img-blog.csdnimg.cn/direct/d49a3b7164724071a7b497e391eda86a.png)
四、动画完成过度和变换效果
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>使用动画完成变换效果</title>
<style>
div {
width: 200px;
height: 150px;
background-color: aquamarine;
border: 1px solid rebeccapurple;
text-align: center;
position: relative;
animation: move 2s linear infinite
}
/* 1.平移 */
/* @keyframes move {
0%{
transform: translateX(0) translateY(0);
}
50%{
transform: translateX(500px) translateY(500px);
}
100%{
transform: translateX(0) translateY(0);
}
} */
/* 2. 平移旋转*/
/* @keyframes move {
0%{
transform: translateX(0) translateY(0);
}
50%{
transform: translateX(200px) translateY(0) rotate(360deg);
}
100%{
transform: translateX(0) translateY(0);
}
} */
/* 3. 旋转缩小*/
/* @keyframes move {
0%{
}
50%{
transform: scale(0.4) rotate(360deg);
}
100%{
}
} */
/* 4. 3D旋转*/
@keyframes move {
0%{
}
50%{
transform: skew(30deg,40deg) rotate(360deg);
}
100%{
}
}
</style>
</head>
<body>
<div class="a">a</div>
</body>
</html>