当前位置:网站首页>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;
}

边栏推荐
- Can wechat applets import the data in the cloud development database into makers with one click in the map component
- BioVendor sRAGE蛋白解决方案
- Enum
- Gorm transaction experience
- Deeplearning ai-week1-quiz
- OpenSSL client programming: SSL session failure caused by an obscure function
- How to develop the language pack in the one-to-one video chat source code
- gorm事务体验
- Install kubebuilder
- [untitled] drv8825 stepping motor drive board schematic diagram
猜你喜欢

Sharing | intelligent environmental protection - ecological civilization informatization solution (PDF attached)

Amino dye research: lumiprobe fam amine, 6-isomer

Voltage mode and current mode control of switching power supply

Extjs library management system source code intelligent library management system source code

线条动画

Dart learning - functions, classes

!‘ Cat 'is not an internal or external command, nor is it a runnable program or batch file.

When excel copies the contents of a row, the columns are separated by the tab "\t"

二级造价工程师证书含金量到底有多高?看这些就知道了

Have you finished the examination of level II cost engineer? There are also qualification regulations!
随机推荐
Extjs library management system source code intelligent library management system source code
Pcr/qpcr research: lumiprobe dsgreen is used for real-time PCR
Deeplearning ai-week1-quiz
Unity out ref params
How does the power outlet transmit electricity? Simple problems that have plagued my little friend for so many years
What are functions in C language? What is the difference between functions in programming and functions in mathematics? Understanding functions in programming languages
Interpretation of cloud native microservice technology trend
Determine whether an attribute exists in an object
Opencv实现颜色检测
Qcom LCD commissioning
SlicePlane的Heading角度与Math.atan2(y,x)的对应转换关系
!‘ Cat 'is not an internal or external command, nor is it a runnable program or batch file.
jsp连接oracle实现登录注册(简单)
mysql导出数据库字典成excel文件
Leecode question brushing-ii
【SkyWalking】一口气学完分布式链路追踪SkyWalking
双向电平转换电路
Biovendor sRAGE protein solution
TypeScript接口
Function reentry caused by Keil C51's data overlaying mechanism