HTML练习4制作京东登录页,day4 CSS属性和京东登录

1、盒子练习

.div1{

background-color: darkcyan;

width: 100px;

height: 100px;

margin-left: 20px;

margin-top: 20px;

/*float: left;*/

text-indent: 4em;

}

.f1{

text-indent: 2em;

}

按时发达复活节啊奥斯卡房间里卡就分手了空间撒 阿发阿发阿发艾弗森adhfhkash发货咖啡来看哈反抗咯说法很顺利苦咖啡

按时发达复活节啊奥斯卡房间里卡就分手了空间撒 阿发阿发阿发艾弗森adhfhkash发货咖啡来看哈反抗咯说法很顺利苦咖啡

2、常用属性

/*1.文本相关属性*/

/*a.字体大小:font-size*/

p{

font-size: 40px;

}

/*字体颜色:color*/

p{

color: saddlebrown;

}

/*字体名 family*/

p{

font-family: "楷体";

}

/*文字宽度 font-weight*/

/*取值:1.100-900(100-700之间不管加粗);

2.bolder/bold/normal*/

p{

font-weight: 800;

}

/*文字倾斜 font-style

italic/oblique - 倾斜

normal - 不倾斜*/

p{

font-style: italic;

}

/*内容水平对齐方式:text-align:

* left - 左对齐

* right - 右对齐

* center - 居中

*/

p{

text-align: center;

}

/*文字行高:line-height

* 设置标签每一行内容的高度,

* 可以通过设置行高和标签的高度一样来让标签中的内容在垂直方向上居中

*/

/*文字修饰:

* underline - 上划线

* overline - 上划线

* line-through - 删除线

* none - 去掉文字修饰*/

/*首行缩进:text-indent

* p标签的文字有效

* */

/*字间距:letter-spacing

每个文字之间的间隙

* */

/*符号位置*/

/*3.背景相关*/

ul{

list-style-image: url(img/aaa.ico);

}

我是段落

3、京东登录

京东-欢迎登录

*{

margin: 0;

padding: 0;

}

.top{

/*background-color: green;*/

height: 120px;

}

/*======logo=========*/

.top .logo{

/*background-color: yellow;*/

height: 80px;

position: relative;

}

.top .logo div{

/*float: left;*/

/*定位*/

position: absolute;

left: 185px;

/*在父标签上垂直方向居中*/

top: 50%;

margin-top: -30px;

}

.top .logo .a2{

/*float: right;*/

/*定位*/

position: absolute;

right: 185px;

bottom: 10px;

/*字体*/

font-size: 12px;

color: rgb(142, 142, 142);

text-decoration: none;

/*背景*/

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

padding-left: 22px;

}

.top .logo .a2:hover{

color: rgb(216, 36, 50);

text-decoration: underline;

}

/*===========message===========*/

.top .message{

background-color: rgb(255, 246, 236);

height: 40px;

/*让子标签水平方向居中*/

text-align: center;

/*让子标签垂直方向居中*/

line-height: 40px;

}

.top .message p{

/*字体*/

font-size: 12px;

color: rgb(142, 142, 142);

/*背景*/

background: url(img/xx.png) no-repeat 212px center rgba(0,0,0,0);

}

.top .message a{

/*字体*/

color: rgb(50, 50, 50);

text-decoration: none;

}

.top .message a:hover{

text-decoration: underline;

}

依据《网络安全法》,为保障您的账户安全和正常使用,请尽快完成手机号验证! 新版

《京东隐私政策》

已上线,将更有利于保护您的个人隐私。

.content{

background-color: rgb(81, 158, 220);

height: 475px;

position: relative;

}

/*背景图*/

.content .bg_image{

position: absolute;

top: 50%;

margin-top: -237px;

left: 100px;

}

/*登录框*/

.content .login_div{

background-color: white;

width: 350px;

height: 400px;

/*定位*/

position: absolute;

top: 10px;

right: 185px;

}

/*顶部*/

.content .login_div .div1{

background-color: rgb(255, 246, 236);

height: 40px;

/*居中*/

text-align: center;

line-height: 40px;

}

.content .login_div .div1 font{

font-size: 12px;

color: rgb(142, 142, 142);

/*背景*/

background: url(img/xx.png) no-repeat 0 center rgba(0,0,0,0);

padding-left: 20px;

}

/*中间*/

.content .login_div .div2{

height: 310px;

}

.content .login_div .div2 .btn{

height: 55px;

color: #dddddd;

font-weight: 100;

}

.content .login_div .div2 .btn button{

width: 170px;

height: 100%;

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

border: none;

font-size: 20px;

color: rgb(83, 83, 83);

}

/*鼠标悬停的状态*/

.content .login_div .div2 .btn button:hover{

color: rgb(217, 48, 60);

}

/*成为焦点的状态*/

.content .login_div .div2 .btn button:focus{

outline: none;

color: rgb(217, 48, 60);

}

/*输入部分*/

.content .login_div .div2 .input{

height: 255px;

/*边框*/

border-top: 1px solid #dddddd;

border-bottom: 1px solid #dddddd;

position: relative;

}

/*输入框框*/

.content .login_div .div2 .input div{

width: 310px;

height: 40px;

border: 1px solid #999999;

margin: 20px;

}

.content .login_div .div2 .input .un_div{

margin-top: 40px;

}

/*图标*/

.content .login_div .div2 .input div img{

height: 40px;

width: 40px;

border-right: 1px solid #999999;

}

/*输入框*/

.content .login_div .div2 .input div input{

height: 100%;

width: 250px;

vertical-align: top;

border: none;

font-size: 14px;

}

.content .login_div .div2 .input div input:focus{

outline: none;

}

/*忘记密码*/

.content .login_div .div2 .input a{

position: absolute;

right: 20px;

font-size: 13px;

color: rgb(53, 53, 53);

text-decoration: none;

}

.content .login_div .div2 .input a:hover{

color: rgb(217, 48, 60);

text-decoration: underline;

}

/*登录按钮*/

.content .login_div .div2 .input .lg_btn{

width: 310px;

height: 35px;

position: absolute;

bottom: 20px;

left: 20px;

font-size: 18px;

background-color: rgb(228, 57, 60);

color: white;

}

.content .login_div .div2 .input .lg_btn:focus{

outline: none;

}

/*底部*/

.content .login_div .div3{

height: 50px;

position: relative;

}

.content .login_div .div3 .fast_login{

position: relative;

left: 80px;

top: 16px;

color: #dddddd;

font-weight: 100;

}

.content .login_div .div3 .fast_login .qq{

/*float: right;*/

/*定位*/

position: absolute;

left: -60px;

/*字体*/

font-size: 14px;

color: rgb(53, 53, 53);

text-decoration: none;

/*背景*/

background: url(img/qq.png) no-repeat 0 center #ffffff;

padding-left: 22px;

}

.content .login_div .div3 .fast_login .qq:hover{

color: rgb(217, 48, 60);

text-decoration: underline;

}

.content .login_div .div3 .fast_login .wx{

position: absolute;

left: 20px;

/*字体*/

font-size: 14px;

color: rgb(53, 53, 53);

text-decoration: none;

/*背景*/

background: url(img/weixin.png) no-repeat 0 center #ffffff;

padding-left: 22px;

}

.content .login_div .div3 .fast_login .wx:hover{

color: rgb(217, 48, 60);

text-decoration: underline;

}

.content .login_div .div3 .alo{

position: absolute;

right: 20px;

top: 16px;

font-size: 16px;

color: rgb(182, 29, 29);

text-decoration: none;

background: url(img/right.png) no-repeat 0 center #FFFFFF;

padding-left: 22px;

}

.content .login_div .div3 .alo:hover{

text-decoration: underline;

}

bg2.png

.bottom{

background-color: lightblue;

height: 110px;

}

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/268486.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Hibernate常见问题集锦

Hibernate常见问题集锦1问:Hibernate初始化时总是报错:java.lang.NoClassDefFoundErrorHibernate初始化时出现出错代码:java.lang.NoClassDefFoundError: net/sf/ehcache/CacheException答:这是新手常见问题。是因为使用默认设置时…

网络运维调查报告

网络运维 是IT管理的核心和重点部分,也是内容最多、最繁杂的部分,该阶段主要用于IT部门内部日常运营管理,涉及的对象分成两大部分,即IT业务系统和运维人员,该阶段的管理内容又可细分为七个子系统: 设备管理…

html css外接修改无效,HTML外部引用CSS文件为什么会不生效

HTML外部引用CSS文件为什么会不生效发布时间:2021-01-14 09:41:22来源:亿速云阅读:112作者:小新这篇文章将为大家详细讲解有关HTML外部引用CSS文件为什么会不生效,小编觉得挺实用的,因此分享给大家做个参考…

ASP.NET MVC 1.0 + spring.net 1.2.0.20288 + NHibernate 2.0.1.4000整合笔记(三)——NHibernate配置...

1、在CMS.App新增XML配置文件web_nhibernate.xml并设置为“嵌入的资源”2、在Web.config中<spring> -> <resource>加入配置&#xff1a;<resource uri"assembly://CMS.App/CMS.App/web_nhibernate.xml"/>3、web_nhibernate.xml中的代码&#xf…

html网页加密最终版,【原】记一次加密网页html的研究

某次web编程,思考着辛辛苦苦编写的web别人 右键查看源码不就一目了然了&#xff1f;当然有些人会把script写入外部js引入&#xff0c;但也只是增加了查看源码的步骤。我就想把整个页面html都加密下&#xff0c;只是右键查看时&#xff0c;看不出代码。那么是否可行&#xff1f;…

修改hosts 流畅使用coursera

以管理员权限打开 C盘 -> Windows-> System32 -> drives -> etc -> hosts文件 在hosts文件最后写入  52.84.246.72 d3c33hcgiwev3.cloudfront.net 转载于:https://www.cnblogs.com/yezhaodan/p/7479251.html

用PHP忙了一晚上写的图片缩略和图片等比缩放函数

/* ---------------------------------------------------------------------- 函数:调整图片尺寸或生成缩略图 修改:2009-8-8 返回:True/False 参数: $Image 需要调整的图片(含路径) $Dw450 调整时最大宽度;缩略图时的绝对宽度 $Dh450 调整时最大高度;缩略图时…

简述css样式的三种引入html的方式,css-1,css的三种引入方式 基本选择器

css三种引入方式 和四种基本选择器/*内接样式*//*1 选择器 选中的是 ‘共性’*/span{color:green;font-size:30px;}/*组合选择器*/ul,ol{list-style:none;}/*2 类选择器 .类名 选中的也是共性 可以有多个*/.active{color:bluefont-size: 30px;}/*3.id选择器 选中的是‘特性’ #…

程序媛计划——python初级class5~13

列表和元组都是可迭代对象&#xff08;可以用于for in&#xff09; 列表 [] #添加列表元素&#xff1a; list.append(argu) #修改列表&#xff1a; list[2] 2017 #删除列表元素 Del list[2] #获取列表长度 len(list) #组合列表 >>>[1,2,3][4,6] [1,2,3,4,6] #定义有周…

html转excel有问题,html转excel

在工作中时常会遇到转换的问题&#xff0c;比如在浏览网站的时候看到一个不错的表格&#xff0c;但这个表格是网页上面的&#xff0c;该网站又不提供下载&#xff0c;这个时候该如何将这个表格下载下来&#xff0c;并且完整的将其转换到Excel中呢?下面8844就为你介绍如何将Htm…

[跟我学UML] UML中的对象图

缩略语UIS UML Infrastructure Specification UML基础结构规范UML Unifed Modeling Language 统一建模语言USS UML Superstructure Specification UML上层结构规范参考资料《UML Infrastructure Specification, v2.2》《UML Superstructure Specifica…

解决移动端 手机号input 属性为 number,maxlength无效情况

<input type"number" oninput"if(value.length>11)valuevalue.slice(0,11)" /> 转载于:https://www.cnblogs.com/qq735675958/p/7483538.html

计算机无法安装hp网络打印机,安装HP网络打印机步骤

打印机在连接上网线以后会通过路由器的DHCP服务自动设置一个IP&#xff0c;但是此IP不一定与你的计算机的IP处在同一个IP段(同段IP为192.168.0.***&#xff0c;即前三位相同(不一定为192.168.0)&#xff0c;只有最后一位不同)&#xff0c;IP不在同一段是无法连接的。此时应手动…

VTP (vlan trunking protocol)

VTP&#xff08;vlan trunking protocol&#xff09;vlan中继协议&#xff0c;是一个二层协议&#xff0c;主要用于在一个vtp域内同步vlan信息&#xff08;vlan的添加、删除、重命名&#xff09;。所谓vtp域&#xff0c;就是配置了相同vtp域名的所有连接在一起的交换机组成的网…

隐藏GridControl的“Drag a column header here to group by that column”

打开设计器&#xff0c;找到OptionsView&#xff0c;往下拉设置showGroupPanel为false 转载于:https://www.cnblogs.com/Cruise-Yang/p/7490052.html

英语面试计算机岗位,计算机专业英语面试自我介绍.docx

计算机专业英语面试自我介绍Hello, my name is XX, born in XX, which is the main reason I choose XXXXX University to have my graduate study.Communication is a fresh field to me, since my major in undergraduate is accounting. I have little professional trainin…