.login { background: white; opacity: 0.85; border-radius: 15px; width: 630px; height: 750px; padding: 80px; margin: 90px 200px; }

时间: 2024-03-07 08:51:51 浏览: 22
这是一个 CSS 样式表中的规则,它定义了一个选择器为 `.login` 的样式。具体来说,它设置了登录框(或登录页面)的背景颜色为白色,透明度为 0.85(即略带半透明效果),边框圆角为 15 像素,宽度为 630 像素,高度为 750 像素,内边距为 80 像素,外边距为上下各 90 像素,左右各 200 像素。这些样式可以使登录框在页面上居中且美观。
相关问题

.commodity-di .general, .draft_status { font-size: 14px; color: #e3ea07; margin-bottom: 10px; } .commodity-di .general { margin-bottom: 15px; } .commodity-di .pay_title { font-size: 14px; color: #10bdd8; border-radius: 10px; margin-top: -35px; margin-left: -1px; padding-bottom: 5px; } .commodity-di .pay_title span { background: linear-gradient(#15c6cf38, #0ab0e647); padding: 5px 30px 5px 30px; border-left: 1px dashed #15c8ca8f; border-top-left-radius: 10px; border-top-right-radius: 10px; border-bottom: none; } .commodity-di .pay-content { margin-top: 50px; border-left: 1px dashed #15c8ca8f; border-bottom: 1px dashed #15c8ca8f; border-right: 1px dashed #15c8ca8f; background: linear-gradient(#18cfc300, #97e2ef14); border-radius: 10px; border-top-left-radius: 0; } .commodity-di .pay_list { padding-left: 15px; padding-right: 15px; } 帮我用以上CSS做出一款渐渐显示的弹窗效果,并且要配合html

好的,下面是一个简单的渐显弹窗的样式和HTML代码: HTML代码: ``` <div class="modal-wrapper"> <div class="modal"> <div class="modal-header"> <h3>提示</h3> <button class="close-btn">&times;</button> </div> <div class="modal-body"> <p>这是一个渐显弹窗。</p> </div> <div class="modal-footer"> <button class="confirm-btn">确定</button> <button class="cancel-btn">取消</button> </div> </div> </div> ``` CSS代码: ``` /* 弹窗外层容器 */ .modal-wrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); z-index: 9999; display: none; } /* 弹窗容器 */ .modal { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 400px; background-color: #fff; border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); opacity: 0; } /* 弹窗标题栏 */ .modal-header { padding: 10px; text-align: center; background-color: #f5f5f5; border-top-left-radius: 10px; border-top-right-radius: 10px; } /* 弹窗内容区域 */ .modal-body { padding: 20px; text-align: center; } /* 弹窗底部按钮区域 */ .modal-footer { padding: 10px; text-align: center; background-color: #f5f5f5; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; } /* 确认按钮样式 */ .confirm-btn { background-color: #4caf50; color: #fff; border: none; padding: 10px 20px; border-radius: 5px; margin-right: 10px; } /* 取消按钮样式 */ .cancel-btn { background-color: #f44336; color: #fff; border: none; padding: 10px 20px; border-radius: 5px; } /* 关闭按钮样式 */ .close-btn { position: absolute; top: 0; right: 0; font-size: 30px; color: #aaa; background-color: transparent; border: none; padding: 0 10px; outline: none; } /* 弹窗渐显动画 */ .modal.fade-in { animation: fade-in 0.5s forwards; } @keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } ``` JavaScript代码: ``` // 获取弹窗元素 var modalWrapper = document.querySelector('.modal-wrapper'); var modal = document.querySelector('.modal'); // 弹窗渐显函数 function fadeInModal() { modal.classList.add('fade-in'); modalWrapper.style.display = 'block'; } // 弹窗关闭函数 function closeModal() { modal.classList.remove('fade-in'); modalWrapper.style.display = 'none'; } // 确认按钮点击事件处理函数 function handleConfirmClick() { console.log('点击了确认按钮'); closeModal(); } // 取消按钮点击事件处理函数 function handleCancelClick() { console.log('点击了取消按钮'); closeModal(); } // 关闭按钮点击事件处理函数 function handleCloseClick() { console.log('点击了关闭按钮'); closeModal(); } // 绑定点击事件 document.querySelector('.confirm-btn').addEventListener('click', handleConfirmClick); document.querySelector('.cancel-btn').addEventListener('click', handleCancelClick); document.querySelector('.close-btn').addEventListener('click', handleCloseClick); // 调用弹窗渐显函数 fadeInModal(); ``` 这是一个简单的渐显弹窗效果,你可以根据具体的需求进行自定义修改。

* { margin: 0; padding: 0; box-sizing: border-box; } html, body { width: 100%; height: 100%; } body { background: #252525; } .container { position: absolute; margin: auto; top: 0; left: 0; right: 0; bottom: 0; width: 300px; height: 100px; } .container .search { position: absolute; margin: auto; top: 0; right: 0; bottom: 0; left: 0; width: 80px; height: 80px; background: crimson; border-radius: 50%; transition: all 1s; z-index: 4; box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.4); } .container .search:hover { cursor: pointer; } .container .search::before { content: ""; position: absolute; margin: auto; top: 22px; right: 0; bottom: 0; left: 22px; width: 12px; height: 2px; background: white; transform: rotate(45deg); transition: all 0.5s; } .container .search::after { content: ""; position: absolute; margin: auto; top: -5px; right: 0; bottom: 0; left: -5px; width: 25px; height: 25px; border-radius: 50%; border: 2px solid white; transition: all 0.5s; } .container input { font-family: "Inconsolata", monospace; position: absolute; margin: auto; top: 0; right: 0; bottom: 0; left: 0; width: 50px; height: 50px; outline: none; border: none; background: crimson; color: white; text-shadow: 0 0 10px crimson; padding: 0 80px 0 20px; border-radius: 30px; box-shadow: 0 0 25px 0 crimson, 0 20px 25px 0 rgba(0, 0, 0, 0.2); transition: all 1s; opacity: 0; z-index: 5; font-weight: bolder; letter-spacing: 0.1em; } .container input:hover { cursor: pointer; } .container input:focus { width: 300px; opacity: 1; cursor: text; } .container input:focus ~ .search { right: -250px; background: #151515; z-index: 6; } .container input:focus ~ .search::before { top: 0; left: 0; width: 25px; } .container input:focus ~ .search::after { top: 0; left: 0; width: 25px; height: 2px; border: none; background: white; border-radius: 0%; transform: rotate(-45deg); } .container input::placeholder { color: white; opacity: 0.5; font-weight: bolder; }

这段代码是一个简单的搜索框样式,使用了CSS3的动画效果。其中包括一个圆形搜索按钮(红色),点击按钮后输入框会从小圆圈扩大为长方形,并且搜索按钮会移动到输入框的左侧,并且变为白色。同时,输入框的背景颜色也会变成一个深色,并且输入框的宽度会变宽,以便用户能够输入更多的内容。在输入框中输入搜索内容时,输入框的文本颜色变为白色,而搜索按钮的形状也会变化,以增强用户的反馈感。

相关推荐

/* 全局css变量 */ $--color-primary: #409EFF; .primary-color { color: #409EFF; } .background-opacity { background: rgba(64, 158, 255, 0.6); } .form-widget-list { .ghost{ content: ''; font-size: 0; height: 3px; box-sizing: border-box; background: #409EFF; border: 2px solid #409EFF; outline-width: 0; padding: 0; overflow: hidden; } } .el-form-item--medium { .el-radio { line-height: 36px !important; } .el-rate{ margin-top: 8px; } } .el-form-item--small { .el-radio { line-height: 32px !important; } .el-rate{ margin-top: 6px; } } .el-form-item--mini { .el-radio { line-height: 28px !important; } .el-rate{ margin-top: 4px; } } .el-card { margin-top: 3px; margin-bottom: 3px; } input[type="password"]::-ms-reveal { /* 隐藏IE/Edge原生的密码查看按钮 */ display: none; } /* 滚动条样式 begin */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { width: 8px; background: rgba(#101F1C, 0.1); -webkit-border-radius: 2em; -moz-border-radius: 2em; border-radius: 2em; } ::-webkit-scrollbar-thumb { background-color: rgba(#101F1C, 0.35); background-clip: padding-box; min-height: 28px; -webkit-border-radius: 2em; -moz-border-radius: 2em; border-radius: 2em; } ::-webkit-scrollbar-thumb:hover { background-color: rgba(#101F1C, 0.85); } * {//Firefox浏览器滚动条样式 scrollbar-color: #e5e5e5 #f7f7f9; //滚动条轨道颜色、滚动条滑块的颜色 scrollbar-width: thin; //thin模式下滚动条两端的三角按钮会消失 } /* body {//IE浏览器滚动条样式 scrollbar-shadow-color: #e5e5e5; scrollbar-face-color: #e5e5e5; scrollbar-base-color: #ffffff; scrollbar-arrow-color: #444040; } */ /* 滚动条样式 end */

最新推荐

recommend-type

大数据+统计分析+数字化转型+规划设计

进入到数字化时代,数字化转型关系到企业与组织未来的生死和前途。不数字化转型等死,数字化转型找死, 等死就只有死路一条,找死很可能凤凰涅槃,重获新生。在焦虑与希望的驱使下,不少企业开始走上了转型之路,是华丽转身,还是飞蛾扑火,每个企业家都在用自己的勇敢去探寻结果,道阻且长,行则将至;行而不辍,未来可期。 适合:大数据分析应用相关的方案咨询顾问 场景:数据治理、数据分析、数据运营、数据赋能、数据挖掘、培训等 目标:数字化转型、管理赋能、业务赋能、行业数字化应用
recommend-type

STC89C51 简单时钟

STC89C51 简单时钟,叫你从基础开始学习单片机,
recommend-type

管理建模和仿真的文件

管理Boualem Benatallah引用此版本:布阿利姆·贝纳塔拉。管理建模和仿真。约瑟夫-傅立叶大学-格勒诺布尔第一大学,1996年。法语。NNT:电话:00345357HAL ID:电话:00345357https://theses.hal.science/tel-003453572008年12月9日提交HAL是一个多学科的开放存取档案馆,用于存放和传播科学研究论文,无论它们是否被公开。论文可以来自法国或国外的教学和研究机构,也可以来自公共或私人研究中心。L’archive ouverte pluridisciplinaire
recommend-type

MATLAB归一化方法大比拼:5种方法,哪种最适合你的数据?

![MATLAB归一化方法大比拼:5种方法,哪种最适合你的数据?](https://www.finebi.com/wp-content/uploads/2019/11/FineBI%E8%A1%8C%E4%B8%9A%E9%A9%BE%E9%A9%B6%E8%88%B1-1024x510.png) # 1. MATLAB归一化概述 归一化是一种数据预处理技术,用于将数据缩放到特定范围内,从而消除不同特征之间的尺度差异。在MATLAB中,有各种归一化方法可用于不同类型的数据和应用程序。 归一化的主要目的是: - 提高模型的训练效率和准确性,通过消除特征之间的尺度差异,使模型能够更有效地学习
recommend-type

failed to register layer: ApplyLayer exit status 1 stdout: stderr: archive/tar: invalid tar header

很抱歉听到这个问题。这个错误通常是由于Docker镜像损坏或Docker存储库中缺少所需的图层引起的。您可以尝试以下几种方法来解决这个问题: 1. 清理Docker镜像和容器:使用命令“docker system prune”清理不再使用的Docker对象。 2. 检查Docker存储库:确保您正在使用可靠的Docker存储库,并检查是否存在所有必需的图层。 3. 重新下载Docker镜像:如果您确定问题是由于损坏的Docker镜像引起的,则可以尝试重新下载Docker镜像。 4. 更新Docker版本:如果您使用的是旧版Docker,则可能会出现此问题。尝试更新到最新版本的Docke
recommend-type

Linux系统常用操作命令大全手册

附件是Linux系统常用操作命令大全手册,是 markdown格式,其中覆盖了Linux系统管理、文件操作、网络配置等多个方面,都是日常工作中非常常用的命令,欢迎大家下载学习使用!
recommend-type

"互动学习:行动中的多样性与论文攻读经历"

多样性她- 事实上SCI NCES你的时间表ECOLEDO C Tora SC和NCESPOUR l’Ingén学习互动,互动学习以行动为中心的强化学习学会互动,互动学习,以行动为中心的强化学习计算机科学博士论文于2021年9月28日在Villeneuve d'Asq公开支持马修·瑟林评审团主席法布里斯·勒菲弗尔阿维尼翁大学教授论文指导奥利维尔·皮耶昆谷歌研究教授:智囊团论文联合主任菲利普·普雷教授,大学。里尔/CRISTAL/因里亚报告员奥利维耶·西格德索邦大学报告员卢多维奇·德诺耶教授,Facebook /索邦大学审查员越南圣迈IMT Atlantic高级讲师邀请弗洛里安·斯特鲁布博士,Deepmind对于那些及时看到自己错误的人...3谢谢你首先,我要感谢我的两位博士生导师Olivier和Philippe。奥利维尔,"站在巨人的肩膀上"这句话对你来说完全有意义了。从科学上讲,你知道在这篇论文的(许多)错误中,你是我可以依
recommend-type

MATLAB归一化实战指南:从零到一,轻松提升模型性能

![MATLAB归一化实战指南:从零到一,轻松提升模型性能](https://pic1.zhimg.com/80/v2-fd366800ef0bdf29c804ce25c0276778_1440w.webp) # 1. 归一化的理论基础** 归一化是一种数据预处理技术,旨在将数据缩放到特定范围内,通常是[0, 1]或[-1, 1]。通过归一化,可以消除数据量纲上的差异,使不同特征具有可比性,从而提高机器学习模型的性能。 归一化背后的基本原理是,在训练机器学习模型时,模型的学习过程会受到数据分布的影响。如果数据分布不均匀,某些特征可能具有较大的值域,而其他特征的值域较小。这会导致模型在训练过
recommend-type

File path = new File(ResourceUtils.getURL("classpath:static").getPath());

这段代码的作用是获取项目中静态资源文件夹的路径,其中`ResourceUtils.getURL("classpath:static")`表示获取`classpath`下的`static`文件夹的URL,`getPath()`方法则将URL转换成文件路径。最终得到的`File`对象可以用于读取或写入静态资源文件。需要注意的是,这段代码只适用于Spring Boot项目,因为它使用了Spring的`ResourceUtils`类。如果不是Spring Boot项目,可能需要使用其他方式获取静态资源文件夹的路径。
recommend-type

Java加密技术

加密解密,曾经是我一个毕业设计的重要组件。在工作了多年以后回想当时那个加密、 解密算法,实在是太单纯了。 言归正传,这里我们主要描述Java已经实现的一些加密解密算法,最后介绍数字证书。 如基本的单向加密算法: ● BASE64 严格地说,属于编码格式,而非加密算法 ● MD5(Message Digest algorithm 5,信息摘要算法) ● SHA(Secure Hash Algorithm,安全散列算法) ● HMAC(Hash Message AuthenticationCode,散列消息鉴别码) 复杂的对称加密(DES、PBE)、非对称加密算法: ● DES(Data Encryption Standard,数据加密算法) ● PBE(Password-based encryption,基于密码验证) ● RSA(算法的名字以发明者的名字命名:Ron Rivest, AdiShamir 和Leonard Adleman) ● DH(Diffie-Hellman算法,密钥一致协议) ● DSA(Digital Signature Algorithm,数字签名) ● ECC(Elliptic Curves Cryptography,椭圆曲线密码编码学) 本篇内容简要介绍 BASE64、MD5、SHA、HMAC 几种方法。 MD5、SHA、HMAC 这三种加密算法,可谓是非可逆加密,就是不可解密的加密方法。我 们通常只把他们作为加密的基础。单纯的以上三种的加密并不可靠。 BASE64 按照 RFC2045 的定义,Base64 被定义为:Base64 内容传送编码被设计用来把任意序列 的 8 位字节描述为一种不易被人直接识别的形式。(The Base64 Content-Transfer-Encoding is designed to represent arbitrary sequences of octets in a form that need not be humanly readable.) 常见于邮件、http 加密,截取 http 信息,你就会发现登录操作的用户名、密码字段通 过 BASE64 加密的。 通过 java 代码实现如下: