html css表格样式模板_HTML+CSS网页设计,会员账号登录布局样式

大家好,本篇文章分享会员账号登录的布局样式。

效果图:

df5a68818d3e406b16502f0d2587c243.png

会员账号登录布局样式

HTML代码:

账号登录

用户登录成功后,该用户帐号和密码由用户负责保管,用户须保证登录信息的真实性、合法性、有效性。

使用 账号登录,即代表同意《用户登录协议》。

立即登录

CSS代码分析:

使用flex水平垂直居中

.tpt-1446 { display: flex; align-items: center; justify-content: center; height: 100vh}

使用flex布局,固定高度和宽度

.tpt-wp { display: flex; width: 900px; height: 600px}

分为左右布局,左边配置图片,右边使用flex水平垂直居中

.tpt-left { width: 400px}.tpt-right { display: flex; align-items: center; justify-content: center; background: #fff; width: 500px}

配置表单的标题简介的字体颜色,字体大小和行高

.tpt-form h3 { color: #79b8c1; font-size: 34px; line-height: 44px; font-weight: 400; margin-bottom: 20px}.tpt-form p { color: #999; font-size: 12px; line-height: 20px; margin-bottom: 20px}

配置表单文本输入框的样式

.tpt-form input { box-sizing: border-box; width: 100%; height: 38px; line-height: 38px; padding: 0 10px; background: #fff; border: 1px solid #eee; color: #333; font-size: 14px; border-radius: 2px; margin-bottom: 20px}

配置表单提交按钮的样式

.tpt-form button { width: 100%; height: 38px; line-height: 38px; background: #79b8c1; border: 0; color: #fff; font-size: 14px; border-radius: 2px; cursor: pointer}

注:以上部分CSS代码只是帮助大家分析结构,是需要清除所有标签的默认样式。

有问题可以留言,大家一起学习HTML+CSS网页设计。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值