<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>西安工商学院</title>
<style>
* {
margin: 0;
padding: 0;
}
.contaner {
border: 1px solid white;
height: 70px;
background-color: #9a3032;
}
.nav>div {
float: left;
color: white;
margin-left: 20px;
line-height: 70px;
padding-left: 5px;
padding-right: 5px;
position: relative;
}
.nav {
width: 1000px;
height: 70px;
margin: auto;
}
.nav>div:hover {
background-color: white;
color: #9a3032;
padding: 5px;
}
.nav>div:hover>.two {
display: block;
}
.two>ul>li {
color: black;
line-height: 30px;
margin-left: 40px;
font-size: 14px;
list-style: none;
}
.two>ul>li::before {
display: inline-block;
content: "";
width: 5px;
height: 5px;
border-radius: 50%;
background-color: #9a3032;
margin-right: 10px;
}
.two>* {
float: left;
}
.two {
display: none;
position: absolute;
background-color: white;
width: 500px;
padding: 10px;
left: 0px;
}
</style>
</head>
<body>
<div class="contaner">
<div class="nav">
<div>首页</div>
<div class="one">学校概况
<div class="two"><img src="./img/2..png" alt="">
<ul>
<li>学校简介</li>
<li>校长寄语</li>
<li>学校领导</li>
<li>学校风光</li>
<li>学校标识</li>
</ul>
</div>
</div>
<div>组织机构
<div class="two"><img src="./img/2..png" alt="">
<ul>
<li>党群机构</li>
<li>行政部门</li>
<li>二级学院</li>
</ul>
</div>
</div>
<div>党群工作
<div class="two"><img src="./img/2..png" alt="">
<ul>
<li>党建工作</li>
<li>团委工作</li>
<li>工会工作</li>
</ul>
</div>
</div>
<div>教育教学
<div class="two"><img src="./img/2..png" alt="">
<ul>
<li>本科教育</li>
<li>职业教育与继续教育</li>
<li>教研与科研</li>
<li>教学动态</li>
</ul>
</div>
</div>
<div>国际教育
<div class="two"><img src="./img/2..png" alt="">
<ul>
<li>国际交流中心</li>
<li>国际教育学院</li>
<li>国际联合培养</li>
<li>英才计划</li>
</ul>
</div>
</div>
<div>校园生活
<div class="two"><img src="./img/2..png" alt="">
<ul>
<li>住宿服务</li>
<li>网络服务</li>
<li>综合服务</li>
<li>校园设施</li>
<li>教学设施</li>
<li>餐饮服务</li>
</ul>
</div>
</div>
<div>学生服务
<div class="two"><img src="./img/2..png" alt="">
<ul>
<li>学工动态</li>
<li>学生会</li>
<li>学生资助</li>
<li>心理健康</li>
<li>资料下载</li>
</ul>
</div>
</div>
<div>招生就业
<div class="two"><img src="./img/2..png" alt="">
<ul>
<li>招生网</li>
<li>就业网</li>
</ul>
</div>
</div>
<div>人才招聘
<div class="two"><img src="./img/2..png" alt="">
<ul>
<li>招聘公示</li>
<li>联系我们</li>
</ul>
</div>
</div>
<div>校友会</div>
</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
/* 修改a链接的不同状态的样式link时字体为绿色取消下划线,hover时字体红色带下划线,visited字体为黑色,ative时字体为黄色*/
a:link {
color:green;
text-decoration:none;
}
a:visited{
color:black;
}
a:hover{
color:red;
text-decoration:underline;
}
a:active{
color:yellow
}
/* 给第二个ol中所有子项带边框(提示:通配符) */
.ol_second> * {
border:1px solid;
}
/* 让第二个ol中的div变为绝对定位,并底边对齐。 */
.ol_second>div:nth-of-type(1){
position:absolute;
bottom:align;
}
/* 将最后一个div制作为一个带有阴影效果的按钮。 */
body>div:nth-of-type(3){
width:100px;
height:50px;
border:1px solid black;
text-align:center;
line-height:50px;
border-radius:15px;
text-shadow:2px 2px 5px black,
-2px -2px 5px black,
2px -2px 5px black,
-2px 2px 5px black;
box-shadow:none;
transition:2s;
}
body>div:nth-of-type(3):hover{
box-shadow: 2px 2px 5px black,
-2px 2px 5px black,
2px -2px 5px black,
-2px -2px 5px black;
text-shadow:none;
}
/* p标签省略号 */
p{
width:80px;
overflow: hidden;
text-overflow: ellipsis;
}
</style>
</head>
<body>
<div></div>
<span>哈哈哈哈</span>
<div></div>
<span></span>
<ol class="ol_first">
<li id="item1">子项1</li>
<li id="item2">子项2</li>
<li id="item3">子项3
<ul class="ul_first">
<li id="item21">子项21</li>
<li id="item22">子项22</li>
<li id="item23">子项23</li>
</ul>
</li>
</ol>
<ol class="ol_second">
<li>子项31</li>
<li>子项32</li>
<div>div33</div>
<a href="#">这是一个a链接</a>
</ol>
<div>button</div>
<p>asdfghjkkkkl</p>
</body>
</html>