dw html 背景图,开发工具与关键技术:DW 使用HTML制作登陆界面设置透明背景图...

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

开发工具与关键技术:DW 使用HTML制作登陆界面设置透明背景图片

作者:冉启东

撰写时间:2019年1月20日

1.使用HTML制作登陆界面设置透明背景图片代码如下:

源代码:

登录界面纯净版

CSS(1)代码如下:

img{

opacity: 1;

/*--设置透明背景--*/

}

div#div1{

position: fixed;/*----设置背景-----*/

top: 0;

left: 0;

bottom: 0;

right: 0;

z-index: -1;

}

div#div1>img{

height: 100%;/*----背景大小----*/

width: 100%;

border: 0;

}

.cont {

width: 241px;/*边框样式*/

height: 230px;

padding: 15px;

border-radius: 5px;

box-shadow: 0 2px 3px #ccc;

margin-bottom: 20px;

margin: 250px auto;

}

a {/*登录字体*/

font-size: 20px;

margin-top: 0px;

color: #fff;

margin-left: 30px;

margin: auto;

text-decoration: none;

}

.al {/*按钮样式*/

width: 55px;

height: 35px;

border-radius: 5px;

margin-top: 0px;

margin: auto;

color: #fff;

background-color: #007bff;

border-color: #007bff;

}

.pro_plan {/*登录的边框*/

margin: 30px auto;

text-decoration: none;

text-align: center;

}

CSS(2)代码:

@charset "utf-8";

input{

height: 38px;/*高*/

width: 237px;/*宽*/

margin-top: 20px;/*上外边距*/

border-radius: 5px;

opacity: 0.7;

}

/*----------账号跟密码-----------*/

.zczh a {/*注册账号*/

height: 38px;

margin: -105px;

font-size: 20px;

color: #3CF326;

text-align: center;

}

.wjmm a {/*忘记密码*/

margin-left:-25px;

font-size: 20px;

color: #3CF326;

/*text-align: center;*/

float: right;

}

设置完效果图如下:

13b400d7cfdbb2a2a08825127235f963.png

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值