html京东 重置代码,拟写京东登录界面(HTML - CSS)

主界面

京东-欢迎登录

warning.png

京东不会以任何理由要求您转账汇款,谨防诈骗。

扫码登录|

账号登录

pygame.png

password_icon.png

忘记密码

登 录

引入的CSS文件

/*=====0、通用=====*/

*{

margin: 0;

padding: 0;

position: relative;

}

a{

text-decoration: none;

}

/*=====1、header=====*/

#header{

width: 100%;

height: 150px;

background-color: white;

}

#header .h-top{

width: 100%;

height: 100px;

}

#header .h-top .icon{

height: 60px;

position: absolute;

/*垂直居中*/

left: 150px;

top: 50%;

line-height: 60px;

margin: -30px 0 0;

}

#header .h-top a{

/*布局*/

position: absolute;

right: 40px;

bottom: 10px;

/*字体*/

font-size: 12px;

color: rgb(153,153,153);

/*背景图*/

background: url(../img/q-icon.png) no-repeat 0 center;

padding-left: 20px;

}

#header .h-top a:hover{

color: red;

text-decoration: underline;

}

#header .h-bottom{

width: 100%;

height: 50px;

background-color: rgb(255,248,240);

text-align: center;

}

#header .h-bottom div,.top-top{

display: inline;

}

#header .h-bottom div p,.top-top p{

font-size: 12px;

color: rgb(153,153,153);

display: inline;

}

#header .h-bottom div img,.top-top img{

top: 8px;

}

/*用背景图*/

/*#header .h-bottom p{

text-align: center;

height: 50px;

line-height: 50px;

font-size: 12px;

color: rgb(153,153,153);

background: url(../img/warning.png) no-repeat 230px center;

}*/

#header .h-bottom p a{

color: rgb(40,40,40);

}

#header .h-bottom p a:hover{

text-decoration: underline;

}

/*=====2、content=====*/

#content{

width: 100%;

height: 520px;

background: url(../img/ba.png) no-repeat 20% center;

background-color: rgb(11,142,212);

}

#content .input_div{

width: 344px;

height: 438px;

background-color: wheat;

position: absolute;

right: 160px;

top:10px;

}

#content .input_div .info-top{

height: 100px;

background-color: rgb(255,248,240);

text-align: center;

}

#content .input_div .info-top .top-bottom{

background-color: white;

height: 55px;

position: absolute;

width: 100%;

top: 45px;

/*设置中间竖线的颜色*/

color: rgb(200,200,200);

border-bottom:1px solid rgb(200,200,200);

}

#content .input_div .info-top .top-bottom button{

width: 160px;

height: 55px;

border: 0;

background-color:rgba(0,0,0,0);

font-size: 20px;

color: rgb(53,53,53);

}

#content .input_div .info-top .top-bottom button:hover{

color: red;

}

#content .input_div .info-top .top-bottom button:focus{

color: red;

/*按钮和输入框成为焦点后默认的边框,是outline*/

outline: none;

}

#content .input_div .info-middle{

height: 288px;

background-color: white;

border-top: 1px solid rgb(200,200,200);

border-bottom: 1px solid rgb(200,200,200);

}

/*用户名和密码*/

#content .input_div .info-middle .username,#content .input_div .info-middle .password{

background-color: white;

width: auto;

height: 50px;

position: absolute;

left: 20px;

right: 20px;

top: 40px;

border:1px solid rgb(180,180,180) ;

}

#content .input_div .info-middle .password{

top: 110px;

}

#content .input_div .info-middle img{

float: left;

height: 100%;

border:1px solid rgb(180,180,180)

}

#content .input_div .info-middle input{

border: 0;

float: left;

height: 100%;

width: auto;

padding-left:10px ;

}

#content .input_div .info-middle input:focus{

outline: none;

}

/*忘记密码*/

#content .input_div .info-middle a{

position: absolute;

top: 180px;

right: 20px;

font-size: 12px;

color: rgb(220,220,220);

}

#content .input_div .info-middle a:hover,.about:hover,.call:hover,.club:hover,.english:hover,.friend:hover,.love:hover,.peo:hover,.people:hover,.phone:hover,.shop:hover,.tall:hover{

color: red;

text-decoration: underline;

}

#content .info-middle #log{

background-color: red;

font-size: 20px;

letter-spacing: 23px;

height: 55px;

width: 89%;

position: absolute;

left: 20px;

right: 20px;

bottom: 30px;

}

#content .info-middle #log:focus{

color: yellow;

outline: none;

}

#content .input_div .info-bottom{

height: 50px;

background-color: white;

/*text-align: center;*/

}

/*

* 用列表调了半天感觉效果很勉强

* #content .input_div .info-bottom ul{

float: left;

list-style-position: initial;

list-style-type: circle;

}

#content .input_div .info-bottom .qq{

list-style-image: url(../img/qq.png);

position: absolute;

left: 30px;

top: 10px;

}

#content .input_div .info-bottom .wx{

list-style-image: url(../img/weixin.png);

position: absolute;

left: 100px;

top: 10px;

}*/

/*设置注册按钮*/

#content .input_div .info-bottom div {

top: 8px;

/*left: 111px;*/

display: inline;

}

#content .input_div .info-bottom .login{

position: absolute;

left: 12px;

}

#content .input_div .info-bottom .logon{

/*position: absolute;*/

left: 233px;

}

#content .input_div .info-bottom div p {

color: red;

display: inline;

}

#content .input_div .info-bottom div p:hover{

color: red;

text-decoration: underline;

}

#content .input_div .info-bottom div img{

top:6px

}

/*=====3、footer=====*/

#footer{

width: 100%;

height: 111px;

background-color: white;

color: rgb(153,153,153);

font-size: 12px;

text-align: center;

top: 5px;

}

#footer .versions{

top: 5px;

}

#footer .other a{

font-size: 12px;

color: rgb(220,220,220);

}

4562b02bf34a

jd.gif.gif

今日总结:感觉上是听懂了,实际操作上还有所欠缺。总感觉自己写的代码运行出来的结果和预期效果相去甚远。比如说设置立即注册的字体颜色上时,在CSS中设置就会改变自己的布局,在p标签中一开始设置的颜色后来才反应过来应该是背景颜色。虽然运行结果没有表示出来,但也算是自己的后知后觉吧!最后通过在p标签中添加font标签对那四个字进行设置。今天感触最多的还是对网页的从整体到局部的具化过程,N个div模块的或平行或嵌套的组合将网页从整体细化到某个属性字段图片上的设置,其中趣味还在于乱中有序。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值