20240309web前端_第三周作业_教务系统页面

2024-04-10 03:52

本文主要是介绍20240309web前端_第三周作业_教务系统页面,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

作业:教务系统页面

成果展示:

完整代码:

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>教务系统</title><style>.edu_top{display: flex;width: 1104px;height: 50px;margin-left: 250px;margin-top: 30px;margin-right: 360px;margin-bottom: 10px;color: #1069a4;font-size: 24px;           }.edu_top img{width: 50px;height: 50px;margin-right: 9px;}.font{align-items: center;padding-top: 7px;}.edu_mid{display: flex;width:1160px;height: 510px;background-color: #ededed79;float: left;margin-top: 30px;margin-left: 250px;border: 4px solid #ededed;margin-bottom: 20px;}.edu_mid img{width: 750px;height: 420px;}.edu_doc{margin-left: 20px;width: 380px;height: 500px;background-color:rgba(255, 255, 255, 0.913);}.userandpass img{width: 16px;height: 16px;}.userandpass{margin-left: 30px;margin-right: 25px;border-radius: 5px;}.bjdl img{width: 90px;height: 90px;}.cart:hover{transform: scale(1.1);}</style>
</head>
<body><div class = "edu_top" ><img src="../作业/img2/延安大学校徽2.png"><div class="font">延安大学教学管理信息服务平台</div></div><div class="edu_mid"><img src="../作业/img2/延安大学教务系统图片.png" alt=""><div class="edu_doc"><h5 style="margin-bottom: 20px; padding-left: 15px;">用户登录</h5><div class="userandpass"><table style="border-radius: 5px;border-color: rgb(164, 163, 163);background-color: rgb(255, 255, 255);"border="1px"><tr><td style="border: 0; width: 55px;"><div style="margin-right: 5px;padding: 4px 12px 4px 15px;border-right-style:groove; border-right-color: rgb(250, 248, 248);"><img src="../作业/img2/用户头像.png"></div></td><td style="border: 0;padding: 1px 3px 1px 3px;"><div class="cart"><input type="text" name="username" value="" placeholder="用户名"style="width: 250px; height: 20px;border-width: 0;background-color: rgb(255, 255, 255);"></div></td></tr></table><table style="border-radius: 5px;border-color: rgb(164, 163, 163);margin-top: 10px; background-color: rgb(255, 255, 255);"border="1px" ><tr><td style="border: 0; width: 55px;"><div style="margin-right: 5px;padding: 4px 12px 4px 15px;border-right-style:groove; border-right-color: rgb(250, 248, 248);"><img src="../作业/img2/密码图象.png"></div></td><td style="border: 0;padding: 1px 3px 1px 3px;"><div class="cart"><input type="password" name="password" value="" placeholder="密码"style="width: 250px; height: 20px;border-width: 0;background-color: rgb(255, 255, 255);"></div></td></tr></table><div  class="cart" style="font-size: small; color: #337ab7;margin-left: 250px; margin-top: 15px;"><p style="width: 80px;">忘记密码了?</p></div><form action="http://jwglxt.yau.edu.cn/jwglxt/xtgl/login_slogin.html" method="post"><button type="submit" style="background-color: #337ab7;color: #fff;border-radius: 5px;width: 325px;height: 30px;border: 0;"value="登录"  class="cart">登录</button></form><div style="color: #a94442;background-color: #f2dede;border-color: ebccd1;font-size: small;padding: 15px;margin-top: 10px;border-radius: 5px;">“圣地教务”公众号非任何学校官方公众号,请立即取消关注,谨防受骗或个人信息泄露<br>登录教务管理系统途径:<br>1.访问http://jwglxt.yau.edu.cn/jwglxt<br>2.登录学校网办大厅后选择教务系统登录<br></div><div class="bjdl" style="margin-top: 30px;"><img src="../作业/img2/登录二维码.png" alt="" style="float: left;margin-right: 10px;"><span style="color: #333;font-size: small;"><br>用手机扫一扫,<br>安全、便捷登录</span></div></div></div></div><div class="edu_end" style="text-align: center;color: #8099af;font: normal 12px microsoft YaHei;"><p style="display: inline-block;margin-top: 0px;">版权所有:延安大学教务处 电话:0911-2650133 传真:0911-2650131 电子信箱:ydjwc@yau.edu.cn 版本V8.3.14</p></div> 
</body>
</html>

解析:

主体框架使用快就元素 div 包裹,并且使用元素属性转换将块级元素转换成行内样式并保留其中穿插动画效果,起提示作用。

top部分:

首先是 edu_top部分

<div class = "edu_top" ><img src="../作业/img2/延安大学校徽2.png"><div class="font">延安大学教学管理信息服务平台</div></div>

在头head中使用<style>定义文档样式信息,即css(层叠式样式表),允许开发者在html文件中嵌入样式信息,以控制html元素的外观和布局。

        .edu_top{display: flex;width: 1104px;height: 50px;margin-left: 250px;margin-top: 30px;margin-right: 360px;margin-bottom: 10px;color: #1069a4;font-size: 24px;           }.edu_top img{width: 50px;height: 50px;margin-right: 9px;}

mid部分:

不断修改每个元素块之间的距离关系,并使用css渲染,使界面美观。

        .edu_mid{display: flex;width:1160px;height: 510px;background-color: #ededed79;float: left;margin-top: 30px;margin-left: 250px;border: 4px solid #ededed;margin-bottom: 20px;}.edu_mid img{width: 750px;height: 420px;}.edu_doc{margin-left: 20px;width: 380px;height: 500px;background-color:rgba(255, 255, 255, 0.913);}.userandpass img{width: 16px;height: 16px;}.userandpass{margin-left: 30px;margin-right: 25px;border-radius: 5px;}.bjdl img{width: 90px;height: 90px;}.cart:hover{transform: scale(1.1);}</style>
</head>
<body><div class = "edu_top" ><img src="../作业/img2/延安大学校徽2.png"><div class="font">延安大学教学管理信息服务平台</div></div><div class="edu_mid"><img src="../作业/img2/延安大学教务系统图片.png" alt=""><div class="edu_doc"><h5 style="margin-bottom: 20px; padding-left: 15px;">用户登录</h5><div class="userandpass"><table style="border-radius: 5px;border-color: rgb(164, 163, 163);background-color: rgb(255, 255, 255);"border="1px"><tr><td style="border: 0; width: 55px;"><div style="margin-right: 5px;padding: 4px 12px 4px 15px;border-right-style:groove; border-right-color: rgb(250, 248, 248);"><img src="../作业/img2/用户头像.png"></div></td><td style="border: 0;padding: 1px 3px 1px 3px;"><div class="cart"><input type="text" name="username" value="" placeholder="用户名"style="width: 250px; height: 20px;border-width: 0;background-color: rgb(255, 255, 255);"></div></td></tr></table><table style="border-radius: 5px;border-color: rgb(164, 163, 163);margin-top: 10px; background-color: rgb(255, 255, 255);"border="1px" ><tr><td style="border: 0; width: 55px;"><div style="margin-right: 5px;padding: 4px 12px 4px 15px;border-right-style:groove; border-right-color: rgb(250, 248, 248);"><img src="../作业/img2/密码图象.png"></div></td><td style="border: 0;padding: 1px 3px 1px 3px;"><div class="cart"><input type="password" name="password" value="" placeholder="密码"style="width: 250px; height: 20px;border-width: 0;background-color: rgb(255, 255, 255);"></div></td></tr></table><div  class="cart" style="font-size: small; color: #337ab7;margin-left: 250px; margin-top: 15px;"><p style="width: 80px;">忘记密码了?</p></div><form action="http://jwglxt.yau.edu.cn/jwglxt/xtgl/login_slogin.html" method="post"><button type="submit" style="background-color: #337ab7;color: #fff;border-radius: 5px;width: 325px;height: 30px;border: 0;"value="登录"  class="cart">登录</button></form><div style="color: #a94442;background-color: #f2dede;border-color: ebccd1;font-size: small;padding: 15px;margin-top: 10px;border-radius: 5px;">“圣地教务”公众号非任何学校官方公众号,请立即取消关注,谨防受骗或个人信息泄露<br>登录教务管理系统途径:<br>1.访问http://jwglxt.yau.edu.cn/jwglxt<br>2.登录学校网办大厅后选择教务系统登录<br></div><div class="bjdl" style="margin-top: 30px;"><img src="../作业/img2/登录二维码.png" alt="" style="float: left;margin-right: 10px;"><span style="color: #333;font-size: small;"><br>用手机扫一扫,<br>安全、便捷登录</span></div></div></div></div><div class="edu_end" style="text-align: center;color: #8099af;font: normal 12px microsoft YaHei;"><p style="display: inline-block;margin-top: 0px;">版权所有:延安大学教务处 电话:0911-2650133 传真:0911-2650131 电子信箱:ydjwc@yau.edu.cn 版本V8.3.14</p></div> 

代码部分不断穿插各级元素的使用,调整小块元素的大小和布局

动画部分:缩放:

        .cart:hover{transform: scale(1.1);}<div class="cart"><input type="text" name="username" value="" placeholder="用户名"style="width: 250px; height: 20px;border-width: 0;background-color: rgb(255, 255, 255);"></div><div class="cart"><input type="password" name="password" value="" placeholder="密码"style="width: 250px; height: 20px;border-width: 0;background-color: rgb(255, 255, 255);"></div><div  class="cart" style="font-size: small; color: #337ab7;margin-left: 250px; margin-top: 15px;"><p style="width: 80px;">忘记密码了?</p></div><form action="http://jwglxt.yau.edu.cn/jwglxt/xtgl/login_slogin.html" method="post"><button type="submit" style="background-color: #337ab7;color: #fff;border-radius: 5px;width: 325px;height: 30px;border: 0;"value="登录"  class="cart">登录</button></form>

 

分别对当光标移至用户名块,密码块,忘记密码字和登录块时实现放大1.1倍的提示效果。 

end部分:

    <div class="edu_end" style="text-align: center;color: #8099af;font: normal 12px microsoft YaHei;"><p style="display: inline-block;margin-top: 0px;">版权所有:延安大学教务处 电话:0911-2650133 传真:0911-2650131 电子信箱:ydjwc@yau.edu.cn 版本V8.3.14</p></div>

直接在块级元素内使用style,使前期修改简单,适合调整界面。

这篇关于20240309web前端_第三周作业_教务系统页面的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/890001

相关文章

Vue和React受控组件的区别小结

《Vue和React受控组件的区别小结》本文主要介绍了Vue和React受控组件的区别小结,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学... 目录背景React 的实现vue3 的实现写法一:直接修改事件参数写法二:通过ref引用 DOMVu

Java实现将HTML文件与字符串转换为图片

《Java实现将HTML文件与字符串转换为图片》在Java开发中,我们经常会遇到将HTML内容转换为图片的需求,本文小编就来和大家详细讲讲如何使用FreeSpire.DocforJava库来实现这一功... 目录前言核心实现:html 转图片完整代码场景 1:转换本地 HTML 文件为图片场景 2:转换 H

C#使用Spire.Doc for .NET实现HTML转Word的高效方案

《C#使用Spire.Docfor.NET实现HTML转Word的高效方案》在Web开发中,HTML内容的生成与处理是高频需求,然而,当用户需要将HTML页面或动态生成的HTML字符串转换为Wor... 目录引言一、html转Word的典型场景与挑战二、用 Spire.Doc 实现 HTML 转 Word1

Vue3绑定props默认值问题

《Vue3绑定props默认值问题》使用Vue3的defineProps配合TypeScript的interface定义props类型,并通过withDefaults设置默认值,使组件能安全访问传入的... 目录前言步骤步骤1:使用 defineProps 定义 Props步骤2:设置默认值总结前言使用T

JWT + 拦截器实现无状态登录系统

《JWT+拦截器实现无状态登录系统》JWT(JSONWebToken)提供了一种无状态的解决方案:用户登录后,服务器返回一个Token,后续请求携带该Token即可完成身份验证,无需服务器存储会话... 目录✅ 引言 一、JWT 是什么? 二、技术选型 三、项目结构 四、核心代码实现4.1 添加依赖(pom

基于Python实现自动化邮件发送系统的完整指南

《基于Python实现自动化邮件发送系统的完整指南》在现代软件开发和自动化流程中,邮件通知是一个常见且实用的功能,无论是用于发送报告、告警信息还是用户提醒,通过Python实现自动化的邮件发送功能都能... 目录一、前言:二、项目概述三、配置文件 `.env` 解析四、代码结构解析1. 导入模块2. 加载环

linux系统上安装JDK8全过程

《linux系统上安装JDK8全过程》文章介绍安装JDK的必要性及Linux下JDK8的安装步骤,包括卸载旧版本、下载解压、配置环境变量等,强调开发需JDK,运行可选JRE,现JDK已集成JRE... 目录为什么要安装jdk?1.查看linux系统是否有自带的jdk:2.下载jdk压缩包2.解压3.配置环境

Linux查询服务器系统版本号的多种方法

《Linux查询服务器系统版本号的多种方法》在Linux系统管理和维护工作中,了解当前操作系统的版本信息是最基础也是最重要的操作之一,系统版本不仅关系到软件兼容性、安全更新策略,还直接影响到故障排查和... 目录一、引言:系统版本查询的重要性二、基础命令解析:cat /etc/Centos-release详

更改linux系统的默认Python版本方式

《更改linux系统的默认Python版本方式》通过删除原Python软链接并创建指向python3.6的新链接,可切换系统默认Python版本,需注意版本冲突、环境混乱及维护问题,建议使用pyenv... 目录更改系统的默认python版本软链接软链接的特点创建软链接的命令使用场景注意事项总结更改系统的默

基于Python Playwright进行前端性能测试的脚本实现

《基于PythonPlaywright进行前端性能测试的脚本实现》在当今Web应用开发中,性能优化是提升用户体验的关键因素之一,本文将介绍如何使用Playwright构建一个自动化性能测试工具,希望... 目录引言工具概述整体架构核心实现解析1. 浏览器初始化2. 性能数据收集3. 资源分析4. 关键性能指