tb添加背景html,开发工具与关键技术:DW 使用HTML制作登陆界面设置透明背景图...
发布日期:2022-02-08 20:24:10 浏览次数:32 分类:技术文章

本文共 1232 字,大约阅读时间需要 4 分钟。

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

开发工具与关键技术: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

转载地址:https://blog.csdn.net/weixin_33132553/article/details/118271269 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:三校生计算机网络技术,辽宁省三校生高考复习题-[网络]第1章 计算机网络概述...
下一篇:计算机桌面打标签,桌面记事本,详细教您怎么在桌面添加便签

发表评论

最新留言

很好
[***.229.124.182]2024年04月05日 23时52分13秒

关于作者

    喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!

推荐文章

spring boot 与 Ant Design of Vue 实现删除按钮(十八) 2019-04-27
spring boot 与 Ant Design of Vue 实现角色管理布局以及角色的列表(十九) 2019-04-27
spring boot 与 Ant Design of Vue 实现新增角色(二十) 2021-06-30
spring boot 与 Ant Design of Vue 实现修改角色(二十一) 2021-06-30
spring boot 与 Ant Design of Vue 实现删除角色(补二十一) 2021-06-30
spring boot 与 Ant Design of Vue 实现组织管理布局的实现(二十二) 2021-06-30
spring boot 与 Ant Design of Vue 实现左侧组织树(二十三) 2021-06-30
spring boot 与 Ant Design of Vue 实现新增组织(二十四) 2021-06-30
spring boot 与 Ant Design of Vue 实现修改组织(二十五) 2021-06-30
spring boot 与 Ant Design of Vue 实现删除组织(二十六) 2021-06-30
spring boot 与 Ant Design of Vue 实现获取用户列表(二十七) 2021-06-30
spring boot 与 Ant Design of Vue 实现新增用户(二十八) 2021-06-30
spring boot 与 Ant Design of Vue 实现修改用户(二十九) 2021-06-30
spring boot 与 Ant Design of Vue 实现删除用户(三十) 2021-06-30
spring boot 与 Ant Design of Vue 鉴权体系登录的实现(三十一) 2019-04-27
spring boot 与 Ant Design of Vue 鉴权体系获取用户信息的实现(三十二) 2019-04-27
Druid连接池实现自定义场景的多数据库的连接 2019-04-27
CentOs7命令行(静默)的方式安装oracle数据库 2019-04-27
基于VMware安装CentOs7的镜像 2019-04-27
PL/SQL数据库管理工具的使用 2019-04-27