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

相关文章

MySQL表锁、页面锁和行锁的作用及其优缺点对比分析

《MySQL表锁、页面锁和行锁的作用及其优缺点对比分析》MySQL中的表锁、页面锁和行锁各有特点,适用于不同的场景,表锁锁定整个表,适用于批量操作和MyISAM存储引擎,页面锁锁定数据页,适用于旧版本... 目录1. 表锁(Table Lock)2. 页面锁(Page Lock)3. 行锁(Row Lock

Vue项目的甘特图组件之dhtmlx-gantt使用教程和实现效果展示(推荐)

《Vue项目的甘特图组件之dhtmlx-gantt使用教程和实现效果展示(推荐)》文章介绍了如何使用dhtmlx-gantt组件来实现公司的甘特图需求,并提供了一个简单的Vue组件示例,文章还分享了一... 目录一、首先 npm 安装插件二、创建一个vue组件三、业务页面内 引用自定义组件:四、dhtmlx

Vue ElementUI中Upload组件批量上传的实现代码

《VueElementUI中Upload组件批量上传的实现代码》ElementUI中Upload组件批量上传通过获取upload组件的DOM、文件、上传地址和数据,封装uploadFiles方法,使... ElementUI中Upload组件如何批量上传首先就是upload组件 <el-upl

前端知识点之Javascript选择输入框confirm用法

《前端知识点之Javascript选择输入框confirm用法》:本文主要介绍JavaScript中的confirm方法的基本用法、功能特点、注意事项及常见用途,文中通过代码介绍的非常详细,对大家... 目录1. 基本用法2. 功能特点①阻塞行为:confirm 对话框会阻塞脚本的执行,直到用户作出选择。②

如何使用CSS3实现波浪式图片墙

《如何使用CSS3实现波浪式图片墙》:本文主要介绍了如何使用CSS3的transform属性和动画技巧实现波浪式图片墙,通过设置图片的垂直偏移量,并使用动画使其周期性地改变位置,可以创建出动态且具有波浪效果的图片墙,同时,还强调了响应式设计的重要性,以确保图片墙在不同设备上都能良好显示,详细内容请阅读本文,希望能对你有所帮助...

CSS3 最强二维布局系统之Grid 网格布局

《CSS3最强二维布局系统之Grid网格布局》CS3的Grid网格布局是目前最强的二维布局系统,可以同时对列和行进行处理,将网页划分成一个个网格,可以任意组合不同的网格,做出各种各样的布局,本文介... 深入学习 css3 目前最强大的布局系统 Grid 网格布局Grid 网格布局的基本认识Grid 网

HTML5中下拉框<select>标签的属性和样式详解

《HTML5中下拉框<select>标签的属性和样式详解》在HTML5中,下拉框(select标签)作为表单的重要组成部分,为用户提供了一个从预定义选项中选择值的方式,本文将深入探讨select标签的... 在html5中,下拉框(<select>标签)作为表单的重要组成部分,为用户提供了一个从预定义选项中

前端 CSS 动态设置样式::class、:style 等技巧(推荐)

《前端CSS动态设置样式::class、:style等技巧(推荐)》:本文主要介绍了Vue.js中动态绑定类名和内联样式的两种方法:对象语法和数组语法,通过对象语法,可以根据条件动态切换类名或样式;通过数组语法,可以同时绑定多个类名或样式,此外,还可以结合计算属性来生成复杂的类名或样式对象,详细内容请阅读本文,希望能对你有所帮助...

禁止HTML页面滚动的操作方法

《禁止HTML页面滚动的操作方法》:本文主要介绍了三种禁止HTML页面滚动的方法:通过CSS的overflow属性、使用JavaScript的滚动事件监听器以及使用CSS的position:fixed属性,每种方法都有其适用场景和优缺点,详细内容请阅读本文,希望能对你有所帮助... 在前端开发中,禁止htm

Vue3中的动态组件详解

《Vue3中的动态组件详解》本文介绍了Vue3中的动态组件,通过`component:is=动态组件名或组件对象/component`来实现根据条件动态渲染不同的组件,此外,还提到了使用`markRa... 目录vue3动态组件动态组件的基本使用第一种写法第二种写法性能优化解决方法总结Vue3动态组件动态