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

边栏推荐
- Lumiprobe cell imaging analysis: PKH26 cell membrane labeling kit
- Biovendor sRAGE protein solution
- Prove that there are infinite primes / primes
- Extjs图书管理系统源码 智能化图书管理系统源码
- Quartus replication IP core
- How to develop the language pack in the one-to-one video chat source code
- 指定默认参数值 仍报错:error: the following arguments are required:
- Assembly common instructions
- Interpretation of cloud native microservice technology trend
- Why don't big manufacturers use undefined
猜你喜欢

Gee learning notes 3- export table data
![[leetcode] 12. Integer to Roman numeral](/img/3e/815f24a85a3333ce924acee1856f62.png)
[leetcode] 12. Integer to Roman numeral

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

阴阳师页面
![[Linux] - using xshell to install MySQL on Linux and realize the deployment of webapp](/img/07/e044a6ef14a6576dbee1c6a009ab4f.png)
[Linux] - using xshell to install MySQL on Linux and realize the deployment of webapp

A guide to P2P network penetration (stun) for metartc5.0 programming

2022 safety officer-b certificate examination question bank and answers

活性染料研究:Lumiprobe AF594 NHS 酯,5-异构体

The heading angle of sliceplane is the same as that of math Corresponding transformation relation of atan2 (y, x)

Redis 的 最新windows 版本 5.0.14
随机推荐
Wireless sensor network learning notes (I)
刘海屏手机在部分页面通过[[UIApplication sharedApplication] delegate].window.safeAreaInsets.bottom得到底部安全区高度为0问题
What does mysql---where 1=1 mean
Docker installs mysql5.7 and starts binlog
Prove that there are infinite primes / primes
双向电平转换电路
Share a powerful tool for factor Mining: genetic programming
JS 文本框失去焦点修改全半角文字和符号
Reactive dye research: lumiprobe af594 NHS ester, 5-isomer
How to learn programmable logic controller (PLC)?
Store inventory management system source code
Don't roll! How to reproduce a paper with high quality?
Disable right-click, keyboard open console events
【C语言练习——打印空心正方形及其变形】
Carboxylic acid study: lumiprobe sulfoacyanine 7 dicarboxylic acid
[Linux] - using xshell to install MySQL on Linux and realize the deployment of webapp
Oracle 常用基础函数
【JVM系列】JVM调优
PCR/qPCR研究:Lumiprobe丨dsGreen 用于实时 PCR
Unity delegate