侧边栏壁纸
博主头像
Wood Chen博主等级

独唱独酬,独行独坐还独卧

  • 累计撰写 233 篇文章
  • 累计创建 166 个标签
  • 累计收到 9 条评论

目 录CONTENT

文章目录

POST提交登录可用登录框代码

wood
2022-12-06 / 0 评论 / 0 点赞 / 10 阅读 / 1616 字

HTML

CSS

.login-box {
  position:absolute;
  box-sizing: border-box;
  margin-left:auto; 
  margin-right:auto;
  width: 100%;
}
.login-box .user-box {
  position: relative;
}
.login-box .user-box input {
  width: 100%;
  padding: 10px 0;
  font-size: 16px;
  color: rgb(0, 0, 0);
  margin-bottom: 30px;
  border: none;
  border-bottom: 1px solid rgb(0, 0, 0);
  outline: none;
}
.login-box .user-box label {
  position: absolute;
  top:0;
  left: 0;
  padding: 10px 0;
  font-size: 16px;
  color: rgb(0, 0, 0);
  pointer-events: none;
  transition: .5s;
}
.login-box .user-box input:focus ~ label,
.login-box .user-box input:valid ~ label {
  top: -20px;
  left: 0;
  color: rgb(37,111,183);
  font-size: 12px;
}
.czl_tms_loginbutton{
  width:100%;
border-radius: 4px; 
  padding: 9px;
  text-align: center;
  font-size: 13px;
  color:rgb(255, 255, 255);
  background-color: rgb(37,111,183);
  display: block; 
margin-bottom: 10px;  
line-height: 20px;
  margin-bottom: 10px; 
  border: 1px solid #808080;
  outline:none;
}
0
css

评论区