当前位置:网站首页>Blog login box
Blog login box
2022-06-28 05:27:00 【Yuanxiaobai】
body part
<div class="login">
<h2 class="title">Login</h2>
<form class="login-content" action="">
<input type="text" placeholder=" Please enter a user name ">
<input type="password" placeholder=" Please input a password ">
<input type="submit" value="sign In">
</form>
</div>
css part
*{
margin: 0;
padding: 0;
}
html{
height: 100%;
}
body{
display: grid;/* Grid layout */
height: 100%;
background: url(../images/7.jpg) no-repeat center/cover;
}
.login{
width: 300px;
height: 300px;
background-color: #ebf0f1;
margin: auto;
border-radius: 8px;
}
.login:before{
display: block;
content:'';
width: 100%;
height: 10px;
background-image: -webkit-linear-gradient(left,#27ae60 0%,#27ae60
20%,#8e44ad 20%, #8e44ad 40%,#3498db 40%,#3498db 60%, #e74c3c 60%,
#e74c3c 80%, #f1c40f 80%,#f1c40f 100%);/* css3 gradient */
border-radius: 8px 8px 0 0;
}
.title{
font-size: 2em;
color: #096;
line-height: 80px;
text-align: center;
}
.login-content{
display: flex; /* Elastic box model */
flex-direction: column; /* Change the direction of the spindle vertical */
justify-content: space-around;/* Equal distribution of residual space */
align-items: center;/* Center the secondary shaft */
height: 200px;
/*background-color: #096;*/
}
.login-content input{
width: 80%;
height: 40px;
outline: none;
border: 1px solid #bbb;
border-radius: 8px;
text-indent: 1em;
}
.login-content input[type='submit']{
background-color: #e74c3c;
text-indent: 0;
color: #fff;
}

边栏推荐
- Performance degradation during dpdk source code testing
- Sorting out some topics of modern exchange principle MOOC
- 指定默认参数值 仍报错:error: the following arguments are required:
- Why is point shield cloud forced to quit playing?
- Study on chemical properties and technology of biovendor rage ELISA Kit
- 证明素数/质数有无限多个
- 线条动画
- Amino dye research: lumiprobe fam amine, 6-isomer
- Sharing | intelligent environmental protection - ecological civilization informatization solution (PDF attached)
- 【LeetCode】12、整数转罗马数字
猜你喜欢

Shutter nestedscrollview sliding folding head pull-down refresh effect

MySQL export database dictionary to excel file

To batch add background pictures and color changing effects to videos

Latest Windows version 5.0.14 of redis

二级造价工程师考试还没完?还有资格审核规定!

Docker安装Mysql5.7并开启binlog

Dart learning - functions, classes

How does the power outlet transmit electricity? Simple problems that have plagued my little friend for so many years

Gee learning notes 3- export table data

博客登录框
随机推荐
Operation of 2022 power cable judgment question simulation examination platform
Assembly common instructions
Gorm transaction experience
How does guotaijun charge for safe varieties? Let's talk about the futures account opening process
DPDK 源码测试时性能下降问题
Wedding studio portal applet based on wechat applet
证明素数/质数有无限多个
The short video local life section has become popular. How to grasp the new opportunities?
BioVendor sRAGE蛋白解决方案
8VC Venture Cup 2017 - Elimination Round D. PolandBall and Polygon
2022 special operation certificate examination question bank and simulation examination for safety management personnel of fireworks and firecrackers business units
Prove that there are infinite primes / primes
[JVM] - memory partition in JVM
msa. h: There is no such file or directory
Opencv实现目标检测
【JVM】——JVM中内存划分
博客登录框
? How to write the position to output true
What are functions in C language? What is the difference between functions in programming and functions in mathematics? Understanding functions in programming languages
MySQL export database dictionary to excel file