当前位置:网站首页>博客登录框
博客登录框
2022-06-28 05:21:00 【辕小白】
body部分
<div class="login">
<h2 class="title">Login</h2>
<form class="login-content" action="">
<input type="text" placeholder="请输入用户名">
<input type="password" placeholder="请输入密码">
<input type="submit" value="sign In">
</form>
</div>
css部分
*{
margin: 0;
padding: 0;
}
html{
height: 100%;
}
body{
display: grid;/*网格布局*/
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渐变色*/
border-radius: 8px 8px 0 0;
}
.title{
font-size: 2em;
color: #096;
line-height: 80px;
text-align: center;
}
.login-content{
display: flex; /*弹性盒模型*/
flex-direction: column; /*改变主轴方向 垂直*/
justify-content: space-around;/*均分剩余空间*/
align-items: center;/*副轴居中*/
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;
}

边栏推荐
- Keil C51的Data Overlaying机制导致的函数重入问题
- 二级造价工程师考试还没完?还有资格审核规定!
- metaRTC5.0编程之p2p网络穿透(stun)指南
- JS中的链表(含leetcode例题)<持续更新~>
- [JVM] - Division de la mémoire en JVM
- Opencv实现目标检测
- 如何学习可编程逻辑控制器(PLC)?
- Pcr/qpcr research: lumiprobe dsgreen is used for real-time PCR
- Study on chemical properties and technology of biovendor rage ELISA Kit
- mysql导出数据库字典成excel文件
猜你喜欢

Lumiprobe细胞成像分析:PKH26 细胞膜标记试剂盒

Sqlmap tool user manual

基于微信小程序的婚纱影楼门户小程序

Learn Taiji Maker - mqtt Chapter 2 (IV) esp8266 reserved message application

【Linux】——使用xshell在Linux上安装MySQL及实现Webapp的部署

gorm事务体验

codeforces每日5题(均1700)

Gorm transaction experience

The short video local life section has become popular. How to grasp the new opportunities?
![[JVM] - Division de la mémoire en JVM](/img/d8/29a5dc0ff61e35d73f48effb858770.png)
[JVM] - Division de la mémoire en JVM
随机推荐
Dart learning - functions, classes
Excel将一行的内容进行复制时,列与列之间是用制表符“\t”进行分隔的
Pcr/qpcr research: lumiprobe dsgreen is used for real-time PCR
Deeplearning ai-week1-quiz
Voltage mode and current mode control of switching power supply
[Verilog quick start of Niuke online question brushing series] ~ one out of four multiplexer
无线传感器网络学习笔记(一)
Organize the online cake mall project
TypeScript基础类型
Install kubebuilder
Don't roll! How to reproduce a paper with high quality?
Biovendor sRAGE antibody solution
sqlmap工具使用手册
lotus v1.16.0 calibnet
SlicePlane的Heading角度与Math.atan2(y,x)的对应转换关系
指定默认参数值 仍报错:error: the following arguments are required:
[untitled] drv8825 stepping motor drive board schematic diagram
2022 low voltage electrician examination questions and answers
羧酸研究:Lumiprobe 磺基花青7二羧酸
2022 new version NFT source code source code of China meta universe digital collection art trading platform