用HTML+CSS编写一个计科院网站首页的静态网页

news/2024/5/20 13:01:07/文章来源:https://blog.csdn.net/weixin_30306905/article/details/98840838

 

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><title>计算机科学学院</title><link href="css/bgcss.css" rel="stylesheet">
</head>
<body><!--顶部图片部分--><div class="top"><!--搜索部分--><div class="serach"><input type="text" value="请输入关键字搜索" class="serach_text"><div class="serach_pic"><input type="submit" class="btnSubmit" value style="cursor: hand"></div></div></div><!-- 导航栏部分--><div class="navagator"><ul><li class="top_li">网站首页</li><li class="top_li">学院概况</li><li class="top_li">本科生教育</li><li class="top_li">研究生教育</li><li class="top_li">师资队伍</li><li class="top_li">科学研究</li><li class="top_li">学生工作</li><li class="top_li">招生工作</li><li class="top_li">实验中心</li><li class="top_li">党建之窗</li></ul></div><!--轮播图部分--><div class="picNews"></div><!--图片新闻与学术交流部分--><div class="contentOne"><!--图片新闻--><div class="news"><div class="newsTitle"><h2>图片新闻</h2><span class="picSpan"><img src="img/more.png"></span></div><!--左边图片部分,实现方式为table标签--><div class="" style="width: 310px;margin: 12px 0 0 0;display: block;float: left"><table class=""><tbody><tr><td><div class="news_pictuure"><img src="img/news_pic2.jpg" style="width: 310px;height: 174px"></div></td></tr><tr><td><div class="news_intro" align="center"><a href="#" class="pic_text" target="_blank" style="text-decoration: none;">计算机科学学院隆重举行第八届“盛特杯”大学生课外...</a></div></td></tr></tbody></table></div><!--右边新闻列表部分--><div class="news_list"><ul style="width: 314px;height: 180px;padding: 0 0 0 20px"><li class="item"><a target="_blank" href="#"><em>计算机科学学院举办2019年寒假留校学生新春</em><span>[02-01]</span></a></li><li class="item"><a target="_blank" href="#"><em>学院召开教职工大会学习传达中层干部大会精</em><span>[03-15]</span></a></li><li class="item"><a target="_blank" href="#"><em>计科院工会组织学院女教职工庆祝第109个“</em><span>[03-12]</span></a></li><li class="item"><a target="_blank" href="#"><em>学术讲座——人工智能改变我们的未来生活</em><span>[03-05]</span></a></li><li class="item"><a target="_blank" href="#"><em>计算机科学学院各年级辅导员集中走访学生寝</em><span>[01-21]</span></a></li><li class="item"><a target="_blank" href="#"><em>学院召开2018年度领导班子民主生活会</em><span>[02-14]</span></a></li></ul></div></div><!--学术交流--><div class="communicate"><div class="newsTitle"><h2>学术交流</h2><span class="picSpan"><img src="img/more.png"></span></div><!--右边新闻列表部分--><div class="news_list"><ul style="width: 314px;height: 180px;padding: 0 0 0 20px"><li class="item"><a target="_blank" href="#"><em>人工智能改变我们的未来生活</em></a></li><li class="item"><a target="_blank" href="#"><em>计算时代的虚假信息传播</em></a></li><li class="item"><a target="_blank" href="#"><em>人工智能+:视界充满AI</em></a></li><li class="item"><a target="_blank" href="#"><em>零行列式策略及其网络演化动力学</em></a></li><li class="item"><a target="_blank" href="#"><em>视频遇上云服务</em></a></li><li class="item"><a target="_blank" href="#"><em>计科院关于举行2018年校庆论文报告会的通知</em></a></li></ul></div></div></div><!--新闻速递与党建动态--><div class="contentTwo"><!--新闻速递--><div class="newsPass"><div class="newsTitle"><h2>新闻速递</h2><span class="picSpan"><img src="img/more.png"></span></div><div class="news_list_2"><h3><a>计算机科学学院举办2019年寒假留校学生新春团拜会</a></h3><p>​在中华民族传统节日——春节即将到来之际,为让学院留校学生感受家的温暖,向他们传达学院的慰问和祝福。2019年2月1日上午9时30分,计算机科学学院在明理楼B306会议室隆重举行2019年寒假留…<span style="color: #0b6cb8">[详细信息]</span></p><ul style="width: 644px;height: 286px;padding-left: 0"><li class="item_2"><a target="_blank" href="#"><em>学院召开教职工大会学习传达中层干部大会精神 部署学院学期工作</em><span>03/15</span></a></li><li class="item_2"><a target="_blank" href="#"><em>计科院工会组织学院女教职工庆祝第109个“三八妇女节”</em><span>03/12</span></a></li><li class="item_2"><a target="_blank" href="#"><em>学术讲座——人工智能改变我们的未来生活</em><span>03/05</span></a></li><li class="item_2"><a target="_blank" href="#"><em>计算机科学学院各年级辅导员集中走访学生寝室</em><span>01/21</span></a></li><li class="item_2"><a target="_blank" href="#"><em>学院召开2018年度领导班子民主生活会</em><span>01/14</span></a></li><li class="item_2"><a target="_blank" href="#"><em>计科院与川庆安检院技术交流大会</em><span>01/10</span></a></li></ul></div></div><!--党建动态--><div class="party"><div class="newsTitle" style="width: 320px"><h2>党建动态</h2><span class="picSpan"><img src="img/more.png"></span></div><!--右边新闻列表部分--><div class="news_list"><ul style="width: 314px;height: 180px;padding: 0 0 0 20px"><li class="item"><a target="_blank" href="#"><em>学院召开教职工大会学习传达中层干部大会精神 部署学院学期工作</em></a></li><li class="item"><a target="_blank" href="#"><em>学院召开2018年领导班子民主生活会</em></a></li><li class="item"><a target="_blank" href="#"><em>刘翔同志任计算机科学学院党委副书记、纪委书记</em></a></li><li class="item"><a target="_blank" href="#"><em>学院党委组织师生收看庆祝改革开放40周年大会</em></a></li><li class="item"><a target="_blank" href="#"><em>【审核评估】学院召开本科教学工作审核评估办学定位与目标宣讲大会</em></a></li><li class="item"><a target="_blank" href="#"><em>【聚焦评估】学院召开本科教学工作审核评估工作会</em></a></li><li class="item"><a target="_blank" href="#"><em>学院党委开展迎校庆主题党日活动</em></a></li><li class="item"><a target="_blank" href="#"><em>学院党委组织收看2018年全国科学道德和学风建设宣讲教育报告会</em></a></li></ul></div></div></div><!--通知公告与专题列表--><div class="contentThree"><!--通知公告--><div class="inform"><div class="newsTitle"><h2>新闻速递</h2><span class="picSpan"><img src="img/more.png"></span></div><div class="news_list_2"><ul style="width: 644px;height: 280px;padding-left: 0"><li class="item_2"><a target="_blank" href="#"><em>自组团出访前公示信息表(彭博)</em></a></li><li class="item_2"><a target="_blank" href="#"><em>计算机科学学院2019年春季学期开学教学准备及检查工作实施方案</em></a></li><li class="item_2"><a target="_blank" href="#"><em>西南石油大学计算机科学学院关于举行学院2019年春季田径运动会的通知</em></a></li><li class="item_2"><a target="_blank" href="#"><em>2018年秋季学期期末考试情况总结</em></a></li><li class="item_2"><a target="_blank" href="#"><em>计算机科学学院2018年度教职工考核优秀名单公示</em></a></li><li class="item_2"><a target="_blank" href="#"><em>国际学术会议(ICCIS2019)征稿通知</em></a></li><li class="item_2"><a target="_blank" href="#"><em>计算机科学学院领导班子2018年度民主生活会征求意见</em></a></li><li class="item_2"><a target="_blank" href="#"><em>关于表彰计算机科学学院2018-2019学年秋季学期“最美寝室”的通知</em></a></li></ul></div></div><!--专题列表--><div class="subject"><div class="newsTitle" style="width: 320px"><h2>专题列表</h2><span class="picSpan"><img src="img/more.png"></span></div><!--右边新闻列表部分--><div class="news_list"><ul style="width: 314px;height: 180px;padding: 0 0 0 20px"><li class="item"><a target="_blank" href="#"><em>中美联合高性能和大数据计算实验室</em></a></li><li class="item"><a target="_blank" href="#"><em>石油工程计算机模拟技术重点实验室</em></a></li><li class="item"><a target="_blank" href="#"><em>思科网络技术学院教师培训中心</em></a></li></ul></div></div></div><!--底部信息--><div class="footer"><p>Copyright© 2018 All Rights Reserved. 西南石油大学计算机科学学院</p></div>
</body>
</html>

 

body{margin: 0;
}
.top{width: 100%;height:112px;background:  no-repeat url("../img/top-bg.jpg") center;
}
.serach{width: 287px;height: 38px;background: url("../img/top_hunt_bg.png") no-repeat;margin-top: 32px;margin-right: 320px;float: right;
}
.serach_text{float: left;width: 195px;margin-top: 2px;margin-left: 15px;height: 30px;line-height: 30px;color: rgb(200,200,200);outline: none;border: medium none;
}
.serach_pic{height: 18px;float: right;margin-top: 6px;
}
.btnSubmit{width: 22px;height: 22px;margin-right: 10px;margin-top: 2px;outline:none;cursor: pointer;background: url("../img/top_hunt.png") no-repeat;border: medium none;
}
.navagator{background: #0b6cb8;height: 50px;line-height: 50px;margin: 0 auto;width: 974px;
}
ul{margin: 0;
}
.top_li{list-style: none;color: #fff;font-size: 15px;float: left;padding: 0 15px;
}
div{display: block;
}
.picNews{width: 974px;height: 195px;margin: 20px auto;background: url("../img/welcome.jpg") no-repeat center;
}
.contentOne{height: 268px;width: 974px;margin: 0 auto;
}
.news{height: 100%;width: 644px;float: left;padding: 0 10px 0 0;
}
.newsTitle{width: 100%;height: 34px;line-height: 34px;background: #ddd;
}
h2{width: 74px;background: #0b6cb8;color: #fff;font-size: 16px;padding: 0 5px;float: left;margin-top: 0;margin-bottom: 0;font-weight: normal;
}
.picSpan{float: right;display: block;padding: 0 5px;
}
table{width: 100%;height: 200px;
}
.news_pictuure{width: 310px;height: 174px;overflow: hidden;
}
.pic_text{line-height: 220%;color: #222222;font-size: 9pt;font-weight: bold;text-align: center;text-decoration: none;
}
.news_list{width: 334px;height: 180px;margin-top: 12px;float: right;
}
.item{overflow: hidden;font-size: 14px;line-height: 30px;height: 30px;width: 100%;background: url(../img/xdd.png) no-repeat 0px 14px;text-indent: 12px;
}
.item a{width: 314px;height: 30px;text-decoration: none;display: block;
}
.item em{overflow: hidden;color: #5c5c5c;width: 250px;float: left;height: 30px;font-style: normal;text-overflow:ellipsis
}
.item span{width: 60px;height: 30px;color: #5c5c5c;
}
.communicate{width: 320px;height: 226px;float: right;
}
.contentTwo{width: 996px;height: 324px;margin: 0 auto;
}
.newsPass{width: 644px;height: 304px;padding: 0 10px;float: left;
}
.news_list_2{width: 644px;height: 258px;margin-top: 12px;float: right;
}
.news_list_2 h3{margin: 0;padding: 0;text-indent: 12px;
}
.news_list_2 h3 a{width: 422px;height: 25px;color: #0b6cb8;font-size: 18px;cursor: pointer;}
.news_list_2 p{margin-top: 4px;font-size: 12px;color: #999999;/*首行缩进两个字符*/text-indent: 2em;line-height: 22px;padding-bottom: 4px;/*下划线*/border-bottom: 1px dashed #eeeeee;
}
.item_2{overflow: hidden;font-size: 14px;line-height: 30px;height: 30px;width: 644px;background: url(../img/xdd.png) no-repeat 0px 14px;text-indent: 12px;
}
li.item_2 a{width: 644px;height: 30px;text-decoration: none;display: block;
}
.item_2 a em{color: #5c5c5c;width: 570px;float: left;height: 30px;font-style: normal;text-overflow:ellipsis
}
.item_2 a span{width: 66px;height: 30px;color: #c3c3c3;float: right;
}
.party{width: 332px;height: 286px;float: right;
}
.contentThree{width: 996px;height: 296px;margin: 0 auto;
}
.inform{width: 644px;height: 304px;padding: 0 10px;float: left;
}
.subject{width: 332px;height: 126px;float: right;
}
.footer{width: 100%;height: 60px;background: blue;color:black;font-size: 13px;line-height: 60px;
}
.footer p{text-align: center;
}

 

 

效果截图:

 

转载于:https://www.cnblogs.com/lbs727299681/p/10562655.html

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.luyixian.cn/news_show_716713.aspx

如若内容造成侵权/违法违规/事实不符,请联系dt猫网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

社交网站部署——SVN服务器搭建并发布上线

案例概述 某公司的社交网站采用PHP语言开发&#xff0c;为了管理PHP程序员开发的代码&#xff0c;上级领导要求搭建SVN服务器进行版本控制。社交网站的第一个版本部署在LNMP平台之上&#xff0c;前端为Nginx服务器&#xff0c;通过fastcgi协议访问后端的PHP服务器。为了保证数据…

鸿蒙os开发网站,华为鸿蒙系统最新消息,HarmonyOS 应用开发在线体验网站上线

原标题&#xff1a;华为鸿蒙系统最新消息&#xff0c;HarmonyOS 应用开发在线体验网站上线华为的鸿蒙系统从开发之初就受到了大家的广泛关注&#xff0c;从一开始的“备胎”到现在最新的HarmonyOS 2.0版本&#xff0c;华为鸿蒙系统在成长过程中也是经历了不少的波折。今天&…

如何屏蔽https网站,禁止https网站的访问?

HTTPS&#xff08;HTTP over SSL&#xff09;由于其通讯协议的特殊性&#xff0c;域名信息和访问的URL等都处于SSL加密保护下&#xff1b;所以大部分的路由器系统都无法对https网站的域名进行过滤和屏蔽。而诸如WFilter这样的专业级上网行为管理产品&#xff0c;则可以对流量进…

vue项目的seo

2019独角兽企业重金招聘Python工程师标准>>> 不可否定的是&#xff0c;vue现在火。但是在实际项目中&#xff0c;特别是像一下交互网站&#xff0c;我们不可避免会考虑到的是seo问题&#xff0c;这直接关系到我们网站的排名&#xff0c;很多人说用vue搭建的网站不能…

屏蔽复制网站内容时弹出的提示

例如chrome浏览器&#xff0c;在设置里把JavaScript关掉就行了 url地址栏输入chrome://settings/content/javascript?searchjavascript

网站设计HTML——百度 滚筒洗衣机

滚筒洗衣机的效果 <!DOCTYPE html> <html lang"en"> <head><meta charset"UTF-8"><title>滚筒洗衣机销售排行榜</title> </head> <body> <div><h1>滚筒洗衣机销售排行榜</h1><div&g…

linux救援模式使用yum,centos如何进救援模式_网站服务器运行维护,centos

如何解决CentOS7系统ifconfig无法使用的情况_网站服务器运行维护CentOS7系统ifconfig无法使用的解决方法&#xff1a;首先查看“ifconfig”命令所需要的安装包&#xff1b;然后使用“#yum -y install net-tools”命令安装软件&#xff1b;最后使用“ifconfig”查看IP信息即可。…

如何删除ppt自带背景音乐_把网站搬进PPT里是种怎样的体验?

本文总计&#xff1a;2477 字预计阅读时间&#xff1a;10 分钟昨天&#xff0c;我给大家推荐了一个酒类产品的官网&#xff0c;不知道大家看过没。要是没看过的话&#xff0c;也没有关系&#xff0c;因为我用 PPT 把这个网站仿制了一下。保留了主要元素&#xff0c;以及大部分的…

mysql网站中文乱码,关于MySQL中文乱码的完美解决方案

当用客户端或用其他方式连接数据键入中文数据后&#xff0c;在client中的显示为乱码&#xff0c;当然这是字符集设置出现了问题。我先后尝试了很多办法&#xff0c;但依然还是无法在client中显示中文&#xff0c;我尝试在my.ini中修改一下数据在[client]中加入。# Here follows…

php asp.net mvc jsp,IIS部署asp.net mvc网站的方法

iis配置简单的ASP.NET MVC网站&#xff0c;供大家参考&#xff0c;具体内容如下编译器&#xff1a;VS 2013本地IIS&#xff1a;IIS 7操作系统&#xff1a;win 7MVC版本&#xff1a;ASP.NET MVC4sql server版本: 2008 r2打开VS 2013&#xff0c;新建一个MVC项目(Internet版的),然…

特殊日期将网站变成灰色-css滤镜(整理)

一、网站变灰 <!DOCTYPE html> <html> <head> <style> img {-webkit-filter: grayscale(100%);-moz-filter: grayscale(100%);-ms-filter: grayscale(100%);-o-filter: grayscale(100%);filter: grayscale(100%);filter: progid:DXImageTransform.Micr…

tp5怎么做清空网站缓存

首先我们要做的效果如图&#xff1a; 前台代码 <li><a href"{:url(Index/clearCache)}" class"login-area dropdown-toggle"><section><h2><span class"profile"><span><i class"menu-icon fa fa …

nccloud 开发环境访问_比快更快,Github Action + 云开发部署静态网站

Github 为开源项目提供了用于静态页面展示的 Pages 服务&#xff0c;很多开发者都在上面托管了自己的静态网站和博客&#xff0c;不少开源项目的案例和文档页面也采用了这种方式。不过由于 Pages 的 CDN 节点大部分在国外&#xff0c;在国内的访问速度不是很理想&#xff0c;不…

白嫖网站文章复制粘贴

我一看到这种就是特别烦&#xff0c;复制一篇文章就要钱&#xff0c;于是想到了一个好办法 1.首先按F12键&#xff0c;就会弹出如下界面&#xff0c;如果你是开发人员就会秒懂的。 2.点击Console 3.在下方空白输入$0,直接按回车键 , 就可以直接复制文章了&#xff0c;是不是很…

无法访问 IIS 元数据库。您没有足够的特权访问计算机上的 IIS 网站。

1.使用VS2015运行项目&#xff0c;选择使用本机iis运行时报错&#xff1a; XXXX 已配置为使用 IIS。 无法访问 IIS 元数据库。您没有足够的特权访问计算机上的 IIS 网站。 解决方法1&#xff1a; 以"管理员权限"运行VS,在VS菜单打开项目即可。 但是以上解决方法不…

VS2015设置网站/WebSite的启动端口

1.说明在 VS2015的版本中 没有提供修改端口的地方&#xff0c;在网站的属性页中 2.如果想要修改生产环境&#xff08;IISExpress&#xff09;的端口需要在解决方案源代码修改 使用记事本等打开.sln文件 手动修改启动地址

全栈式开发,前端工程化,以nodejs,eggjs为服务器语言,mysql为数据库,vue,vuex,wangeditor,i18n,webpack前端架构服务器端渲染ssr支持seo的博客网站

前言 下面介绍本人开发的个人博客&#xff0c;希望通过开源的方式一起学习和进步&#xff01; 源码地址 网站首页-钢琴家 1. 背景 该项目为一个学习型的博客网站案例&#xff0c;毕竟每个it工程师都想有一个自己的博客嘛&#xff0c;适合初中级前端工程师&#xff1b;项目已…

Teleport Ultra网站静态资源下载工具

一、TeleportUltra官网地址&#xff1a; http://www.tenmax.com/ 下载地址&#xff1a;http://download.csdn.net/detail/u011127019/9749284 简介&#xff1a; Teleport Ultra 所能做的&#xff0c;不仅仅是离线浏览某个网页&#xff0c;它可以从 Internet 的任何地方抓回…

网页在线打开PDF_网站中在线查看PDF之TouchPDF

一、网页在线打开PDF_网站中在线查看PDF之TouchPDF TouchPDF是用于jQuery的简单Web PDF查看器。它基于pdf.js库&#xff0c;并支持用于滑动页面和缩放的移动手势。 可以实现的功能 用手指滑动到下一页或上一页捏放大和缩小跟随指向文档部分或外部URL的链接添加彩色标签以快速…

Cordova 网站打包_Cordova 打包网址

一、Cordova 网站打包_Cordova 打包网址 cordova打包网址,启动app后直接跳转网站,操作比较简单,修改xml配置文件的content标签的src即可。 xml配置如下: <?xml version=1.0 encoding=utf-8?> <widget id="com.ql.audio" version="1.0.0&quo…