.login { display: flex; justify-content: center; align-items: center; height: 100%; background-color: rgba(184, 153, 90, 0.62); } .login-box { width: 1000px; height: 474.38px; border-radius: 8px; display: flex; } .login-box img { width: 60%; height: auto; } .title { margin: 0px auto 30px auto; text-align: center; color: #707070; } .login-form { background: #fdfdfd; width: 40%; border-radius: 0px 8px 8px 0px; display: flex; justify-content: center; align-items: center; } .login-form .el-form { width: 214px; height: 307px; } .login-form .el-form-item { margin-bottom: 30px; } .login-form .el-form-item.is-error .el-input__inner { border: 0 !important; border-bottom: 1px solid #fd7065 !important; background: #fff !important; } .login-form .input-icon { height: 32px; width: 18px; margin-left: -2px; } .login-form .el-input__inner { border: 0; border-bottom: 1px solid #e9e9e8; border-radius: 0; font-size: 14px; font-weight: 400; color: #333333; height: 32px; line-height: 32px; } .login-form .el-input__prefix { left: 0; } .login-form .el-input--prefix .el-input__inner { padding-left: 26px; } .login-form .el-input__inner::placeholder { color: #aeb5c4; } .login-form .el-form-item--medium .el-form-item__content { line-height: 32px; } .login-form .el-input--medium .el-input__icon { line-height: 32px; } .login-btn { border-radius: 17px; padding: 11px 20px !important; margin-top: 10px; font-weight: 500; font-size: 14px; border: 0; background-color: #ffc200; } .login-btn:hover, .login-btn:focus { /* background: #FFC200; */ /* color: #ffffff; */ } .login-form-title { height: 36px; display: flex; justify-content: center; align-items: center; margin-bottom: 40px; } .login-form-title .title-label { font-weight: 500; font-size: 20px; color: #333333; margin-left: 10px; }

时间: 2023-12-06 13:41:06 浏览: 45
这是一段 CSS 样式代码,用于设置登录页面的样式。其中包括登录框的大小、颜色、输入框的样式、按钮的样式等。它使用了 flex 布局来使页面元素居中对齐,并使用了 border-radius 属性来设置圆角。此外,它还定义了:hover 和:focus 状态下按钮的样式,使用户能够在鼠标悬停或聚焦时获得反馈。
相关问题

<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>登录界面</title> <style> body { margin: 0; padding: 0; background-color: #f2f2f2; font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; } #page_login { display: flex; justify-content: center; align-items: center; height: 100vh; } .loginContainer { display: flex; flex-direction: column; align-items: center; justify-content: center; background-color: white; border-radius: 5px; box-shadow: 0px 0px 10px rgba(0,0,0,0.2); padding: 30px; } .loginContainer > div { font-size: 36px; margin-bottom: 20px; text-align: center; } input[type="text"], input[type="password"] { width: 100%; padding: 10px; margin-bottom: 10px; border: none; border-radius: 5px; box-shadow: 0px 0px 5px rgba(0,0,0,0.1); } #loginButton { background-color: #007bff; color: white; padding: 10px 20px; border: none; border-radius: 5px; box-shadow: 0px 0px 5px rgba(0,0,0,0.1); transition: all 0.2s ease-in-out; } #loginButton:hover { transform: scale(1.05); box-shadow: 0px 0px 10px rgba(0,0,0,0.2); } </style> </head> <body> <!-- 登录界面 --> <div id="page_login"> <div class="loginContainer"> <div>Login</div> <input type="text" name="account" id="account" placeholder="account"> <input type="password" name="password" id="password" placeholder="password"> <button id="loginButton" onclick="getLogin()">login</button> </div> <button id="checkinto">select</button> </div> </body> <script> document.getElementById('checkinto').addEventListener('click', function() { window.location.href = 'select.html'; }); </script> <script type="text/javascript" src="./js/index.js"></script> <script src="./js/jquery-3.3.1.js"></script> </html>美化这段代码

<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>登录界面</title> <style> body { margin: 0; padding: 0; background-color: #f2f2f2; font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; } #page_login { display: flex; justify-content: center; align-items: center; height: 100vh; } .loginContainer { display: flex; flex-direction: column; align-items: center; justify-content: center; background-color: white; border-radius: 5px; box-shadow: 0px 0px 10px rgba(0,0,0,0.2); padding: 30px; } .loginContainer > div { font-size: 36px; margin-bottom: 20px; text-align: center; } input[type="text"], input[type="password"] { width: 100%; padding: 10px; margin-bottom: 10px; border: none; border-radius: 5px; box-shadow: 0px 0px 5px rgba(0,0,0,0.1); } #loginButton { background-color: #007bff; color: white; padding: 10px 20px; border: none; border-radius: 5px; box-shadow: 0px 0px 5px rgba(0,0,0,0.1); transition: all 0.2s ease-in-out; } #loginButton:hover { transform: scale(1.05); box-shadow: 0px 0px 10px rgba(0,0,0,0.2); } </style> </head> <body> <!-- 登录界面 --> <div id="page_login"> <div class="loginContainer"> <div>Login</div> <input type="text" name="account" id="account" placeholder="账号"> <input type="password" name="password" id="password" placeholder="密码"> <button id="loginButton" onclick="getLogin()">登录</button> </div> <button id="checkinto">选择</button> </div> </body> <script> document.getElementById('checkinto').addEventListener('click', function() { window.location.href = 'select.html'; }); </script> <script type="text/javascript" src="./js/index.js"></script> <script src="./js/jquery-3.3.1.js"></script> </html>

html css js 宠物网站 代码 功能:登录注册,关于我们,宠物介绍,宠物商品

以下是一个简单的宠物网站的HTML、CSS和JavaScript代码,包括登录注册、关于我们、宠物介绍、宠物商品等功能。 HTML代码: ```html <!DOCTYPE html> <html> <head> <title>宠物网站</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="style.css"> </head> <body> <header> <h1>宠物网站</h1> <nav> <ul> <li><a href="#">首页</a></li> <li><a href="#">宠物介绍</a></li> <li><a href="#">宠物商品</a></li> <li><a href="#">关于我们</a></li> </ul> <div id="user"> <a href="#" id="login">登录</a> <a href="#" id="register">注册</a> </div> </nav> </header> <main> <section id="intro"> <h2>欢迎来到宠物世界</h2> <p>我们致力于为您提供最好的宠物服务和产品,让您的爱宠生活更加美好。</p> </section> <section id="pet"> <h2>宠物介绍</h2> <div class="pet-item"> <img src="dog.jpg" alt="狗狗"> <h3>狗狗</h3> <p>狗狗是人类最忠诚的伙伴,它们陪伴我们走过人生的每一个阶段。</p> </div> <div class="pet-item"> <img src="cat.jpg" alt="猫咪"> <h3>猫咪</h3> <p>猫咪是人类的好朋友,它们温顺可爱,是家庭中的重要成员。</p> </div> <div class="pet-item"> <img src="bird.jpg" alt="小鸟"> <h3>小鸟</h3> <p>小鸟是生活中的美丽元素,它们能够带给我们无尽的快乐。</p> </div> </section> <section id="product"> <h2>宠物商品</h2> <div class="product-item"> <img src="dog-food.jpg" alt="狗粮"> <h3>狗粮</h3> <p>我们提供各种口味、各种品牌的狗粮,保证您的爱宠健康成长。</p> </div> <div class="product-item"> <img src="cat-toy.jpg" alt="猫玩具"> <h3>猫玩具</h3> <p>我们提供各种有趣的猫玩具,让您的猫咪不再无聊。</p> </div> <div class="product-item"> <img src="bird-cage.jpg" alt="鸟笼"> <h3>鸟笼</h3> <p>我们提供各种款式、各种材质的鸟笼,让您的小鸟住得舒适。</p> </div> </section> <section id="about"> <h2>关于我们</h2> <p>我们是一家专业的宠物服务和产品提供商,我们的使命是为您的爱宠带来更好的生活。</p> </section> </main> <footer> <p>版权所有 &copy; 2021 宠物网站</p> </footer> <div id="login-modal" class="modal"> <div class="modal-content"> <span class="close">&times;</span> <h2>用户登录</h2> <form> <label for="username">用户名:</label> <input type="text" id="username" name="username" required> <label for="password">密码:</label> <input type="password" id="password" name="password" required> <input type="submit" value="登录"> </form> </div> </div> <div id="register-modal" class="modal"> <div class="modal-content"> <span class="close">&times;</span> <h2>用户注册</h2> <form> <label for="email">邮箱:</label> <input type="email" id="email" name="email" required> <label for="username">用户名:</label> <input type="text" id="username" name="username" required> <label for="password">密码:</label> <input type="password" id="password" name="password" required> <input type="submit" value="注册"> </form> </div> </div> <script src="script.js"></script> </body> </html> ``` CSS代码: ```css * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: Arial, Helvetica, sans-serif; } header { background: #333; color: #fff; padding: 20px; } h1 { font-size: 32px; } nav { display: flex; justify-content: space-between; align-items: center; } nav ul { display: flex; list-style: none; } nav ul li a { color: #fff; text-decoration: none; padding: 10px; } nav ul li a:hover { background: #fff; color: #333; } #user { display: flex; align-items: center; } #user a { color: #fff; margin-left: 20px; } #user a:hover { text-decoration: underline; } main { padding: 20px; display: flex; flex-direction: column; align-items: center; } h2 { font-size: 24px; margin-bottom: 20px; } section { margin-bottom: 50px; } .pet-item { display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; } .pet-item img { width: 200px; height: 200px; object-fit: cover; border-radius: 50%; margin-bottom: 10px; } .product-item { display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; } .product-item img { width: 200px; height: 200px; object-fit: cover; border-radius: 10px; margin-bottom: 10px; } #login-modal, #register-modal { display: none; position: fixed; z-index: 1; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.5); } .modal-content { background-color: #fff; margin: 10% auto; padding: 20px; border: 1px solid #888; width: 50%; } .close { color: #aaa; float: right; font-size: 28px; font-weight: bold; } .close:hover, .close:focus { color: black; text-decoration: none; cursor: pointer; } @media (max-width: 768px) { header { flex-direction: column; align-items: center; } nav ul { flex-direction: column; margin-top: 20px; } nav ul li { margin-bottom: 10px; } #user { margin-top: 20px; } #login-modal .modal-content, #register-modal .modal-content { width: 80%; } } ``` JavaScript代码: ```javascript // 获取登录和注册按钮 var loginBtn = document.getElementById('login'); var registerBtn = document.getElementById('register'); // 获取登录和注册弹出框 var loginModal = document.getElementById('login-modal'); var registerModal = document.getElementById('register-modal'); // 获取关闭按钮 var loginClose = loginModal.getElementsByClassName('close')[0]; var registerClose = registerModal.getElementsByClassName('close')[0]; // 点击登录按钮弹出登录框 loginBtn.onclick = function() { loginModal.style.display = 'block'; } // 点击注册按钮弹出注册框 registerBtn.onclick = function() { registerModal.style.display = 'block'; } // 点击关闭按钮关闭弹出框 loginClose.onclick = function() { loginModal.style.display = 'none'; } registerClose.onclick = function() { registerModal.style.display = 'none'; } // 点击其他区域关闭弹出框 window.onclick = function(event) { if (event.target == loginModal) { loginModal.style.display = 'none'; } if (event.target == registerModal) { registerModal.style.display = 'none'; } } ``` 以上代码只是一个简单的示例,实际的宠物网站需要根据需求和具体情况进行修改和完善。

相关推荐

最新推荐

recommend-type

基于GEC6818五子棋游戏GEC6818_Gomoku.zip

五子棋游戏想必大家都非常熟悉,游戏规则十分简单。游戏开始后,玩家在游戏设置中选择人机对战,则系统执黑棋,玩家自己执白棋。双方轮流下一棋,先将横、竖或斜线的5个或5个以上同色棋子连成不间断的一排者为胜。 【项目资源】:包含前端、后端、移动开发、操作系统、人工智能、物联网、信息化管理、数据库、硬件开发、大数据、课程资源、音视频、网站开发等各种技术项目的源码。包括STM32、ESP8266、PHP、QT、Linux、iOS、C++、Java、python、web、C#、EDA、proteus、RTOS等项目的源码。 【技术】 Java、Python、Node.js、Spring Boot、Django、Express、MySQL、PostgreSQL、MongoDB、React、Angular、Vue、Bootstrap、Material-UI、Redis、Docker、Kubernetes
recommend-type

zigbee-cluster-library-specification

最新的zigbee-cluster-library-specification说明文档。
recommend-type

管理建模和仿真的文件

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

实现实时数据湖架构:Kafka与Hive集成

![实现实时数据湖架构:Kafka与Hive集成](https://img-blog.csdnimg.cn/img_convert/10eb2e6972b3b6086286fc64c0b3ee41.jpeg) # 1. 实时数据湖架构概述** 实时数据湖是一种现代数据管理架构,它允许企业以低延迟的方式收集、存储和处理大量数据。与传统数据仓库不同,实时数据湖不依赖于预先定义的模式,而是采用灵活的架构,可以处理各种数据类型和格式。这种架构为企业提供了以下优势: - **实时洞察:**实时数据湖允许企业访问最新的数据,从而做出更明智的决策。 - **数据民主化:**实时数据湖使各种利益相关者都可
recommend-type

用matlab绘制高斯色噪声情况下的频率估计CRLB,其中w(n)是零均值高斯色噪声,w(n)=0.8*w(n-1)+e(n),e(n)服从零均值方差为se的高斯分布

以下是用matlab绘制高斯色噪声情况下频率估计CRLB的代码: ```matlab % 参数设置 N = 100; % 信号长度 se = 0.5; % 噪声方差 w = zeros(N,1); % 高斯色噪声 w(1) = randn(1)*sqrt(se); for n = 2:N w(n) = 0.8*w(n-1) + randn(1)*sqrt(se); end % 计算频率估计CRLB fs = 1; % 采样频率 df = 0.01; % 频率分辨率 f = 0:df:fs/2; % 频率范围 M = length(f); CRLB = zeros(M,1); for
recommend-type

JSBSim Reference Manual

JSBSim参考手册,其中包含JSBSim简介,JSBSim配置文件xml的编写语法,编程手册以及一些应用实例等。其中有部分内容还没有写完,估计有生之年很难看到完整版了,但是内容还是很有参考价值的。
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

实现实时监控告警系统:Kafka与Grafana整合

![实现实时监控告警系统:Kafka与Grafana整合](https://imgconvert.csdnimg.cn/aHR0cHM6Ly9tbWJpei5xcGljLmNuL21tYml6X2pwZy9BVldpY3ladXVDbEZpY1pLWmw2bUVaWXFUcEdLT1VDdkxRSmQxZXB5R1lxaWNlUjA2c0hFek5Qc3FyRktudFF1VDMxQVl3QTRXV2lhSWFRMEFRc0I1cW1ZOGcvNjQw?x-oss-process=image/format,png) # 1.1 Kafka集群架构 Kafka集群由多个称为代理的服务器组成,这
recommend-type

python中从Excel中取的列没有了0

可能是因为Excel中的列被格式化为数字,而数字前导的0被省略了。可以在Excel中将列的格式更改为文本,这样就会保留数字前导的0。另外,在Python中读取Excel时,可以将列的数据类型指定为字符串,这样就可以保留数字前导的0。例如: ```python import pandas as pd # 读取Excel文件 df = pd.read_excel('data.xlsx', dtype={'列名': str}) # 输出列数据 print(df['列名']) ``` 其中,`dtype={'列名': str}`表示将列名为“列名”的列的数据类型指定为字符串。
recommend-type

c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf

校园超市商品信息管理系统课程设计旨在帮助学生深入理解程序设计的基础知识,同时锻炼他们的实际操作能力。通过设计和实现一个校园超市商品信息管理系统,学生掌握了如何利用计算机科学与技术知识解决实际问题的能力。在课程设计过程中,学生需要对超市商品和销售员的关系进行有效管理,使系统功能更全面、实用,从而提高用户体验和便利性。 学生在课程设计过程中展现了积极的学习态度和纪律,没有缺勤情况,演示过程流畅且作品具有很强的使用价值。设计报告完整详细,展现了对问题的深入思考和解决能力。在答辩环节中,学生能够自信地回答问题,展示出扎实的专业知识和逻辑思维能力。教师对学生的表现予以肯定,认为学生在课程设计中表现出色,值得称赞。 整个课程设计过程包括平时成绩、报告成绩和演示与答辩成绩三个部分,其中平时表现占比20%,报告成绩占比40%,演示与答辩成绩占比40%。通过这三个部分的综合评定,最终为学生总成绩提供参考。总评分以百分制计算,全面评估学生在课程设计中的各项表现,最终为学生提供综合评价和反馈意见。 通过校园超市商品信息管理系统课程设计,学生不仅提升了对程序设计基础知识的理解与应用能力,同时也增强了团队协作和沟通能力。这一过程旨在培养学生综合运用技术解决问题的能力,为其未来的专业发展打下坚实基础。学生在进行校园超市商品信息管理系统课程设计过程中,不仅获得了理论知识的提升,同时也锻炼了实践能力和创新思维,为其未来的职业发展奠定了坚实基础。 校园超市商品信息管理系统课程设计的目的在于促进学生对程序设计基础知识的深入理解与掌握,同时培养学生解决实际问题的能力。通过对系统功能和用户需求的全面考量,学生设计了一个实用、高效的校园超市商品信息管理系统,为用户提供了更便捷、更高效的管理和使用体验。 综上所述,校园超市商品信息管理系统课程设计是一项旨在提升学生综合能力和实践技能的重要教学活动。通过此次设计,学生不仅深化了对程序设计基础知识的理解,还培养了解决实际问题的能力和团队合作精神。这一过程将为学生未来的专业发展提供坚实基础,使其在实际工作中能够胜任更多挑战。