HTMl+CSS 模仿京东网登录页面

本文介绍了如何使用HTML和CSS模仿京东网的登录页面,包括顶部布局、提示文字和登录表单的设计。通过CSS样式设置,实现了背景、字体、颜色和布局的细节,提供了完整的代码示例。
摘要由CSDN通过智能技术生成

Copyright © 2004-2020  京东JD.com 版权所有

CSS:

*{

margin: 0;

padding: 0;

}

/* 页面的外层 */

#warp{

width: 100vw;

height: 100vh;

}

/* —————顶部————— */

#top{

margin: 0 auto;

width: 1500px;

height: 80px;

background-color: white;

display: flex;

justify-content: space-around;

}

/* 顶部左边 */

.top-left{

margin: 10px 50px 0px 0px;

}

/* 顶部右边边 */

.top-right a{

position: relative;

color: #999;

float: right;

top: 52px;

line-height: 20px;

text-decoration: none;

font-size: 12px;

}

.top-right a:hover{

color: #E4393C;

text-decoration: underline;

}

/* —————顶部下面的提示文字————— */

.cont-wrapper{

background: #fff8f0;

width: 100%;

padding-top: 10px;

padding-bottom: 10px;

text-align: center;

}

.cont-wrapper img{

width: 17px;

height: 17px;

align-items: center;

}

.cont-wrapper p{

vertical-align: middle;

color: #999;

font-size: 12px;

display: inline-block;

}

.cont-wrapper a{

color: #333;

text-decoration: none;

}

.cont-wrapper a:hover{

text-decoration: underline;

}

/* —————中间表单部分————— */

#content{

/* width: 1200px; */

height: 450px;

margin: 0 auto;

background-color: #c4893b;

overflow: hidden;

}

/* 中间内容

  • 10
    点赞
  • 22
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值