129 lines
2.6 KiB
HTML
129 lines
2.6 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title></title>
|
|
<script src="https://libs.baidu.com/jquery/2.0.0/jquery.min.js" type="text/javascript" charset="utf-8"></script>
|
|
</head>
|
|
<body>
|
|
<div class="top">德州市职业健康管理中心</div>
|
|
<div class="banner"></div>
|
|
<div class="content">
|
|
<div class="li">
|
|
<img src="img/tijian.png">
|
|
<div class="tilte">体检</div>
|
|
<div class="xian"></div>
|
|
</div>
|
|
<div class="li">
|
|
<img src="img/jiance.png">
|
|
<div class="tilte">检测</div>
|
|
<div class="xian"></div>
|
|
</div>
|
|
<div class="li">
|
|
<img src="img/pingjia.png">
|
|
<div class="tilte">评价</div>
|
|
<div class="xian"></div>
|
|
</div>
|
|
<div class="li">
|
|
<img src="img/peixun.png">
|
|
<div class="tilte">培训</div>
|
|
<div class="xian"></div>
|
|
</div>
|
|
</div>
|
|
<div class="footer">———————————————— 技术支持:山东新医路信息科技有限公司 ——————————————————</div>
|
|
<style type="text/css">
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.top {
|
|
background: url(img/bg.jpg) no-repeat center;
|
|
line-height: 90px;
|
|
color: #FFFFFF;
|
|
padding-left: 50px;
|
|
font-size: 35px;
|
|
font-weight: bold;
|
|
letter-spacing: 3px;
|
|
text-shadow: 2px 2px 2px #000;
|
|
background-image: linear-gradient(to right top, #1b2d5f, #0240de);
|
|
}
|
|
|
|
.banner {
|
|
height: 300px;
|
|
background: url(img/banner.jpg) no-repeat center left;
|
|
}
|
|
|
|
.banner img {
|
|
width: 100%;
|
|
}
|
|
|
|
.content {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
width: 1450px;
|
|
margin: 0 auto;
|
|
align-items: center;
|
|
box-sizing: border-box;
|
|
padding: 0px 74px;
|
|
}
|
|
|
|
.li {
|
|
width: 20%;
|
|
position: relative;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.tilte {
|
|
position: absolute;
|
|
top: 42px;
|
|
font-family: "microsoft sans serif";
|
|
color: #FFFFFF;
|
|
font-size: 38px;
|
|
left: 30px;
|
|
}
|
|
|
|
.li img {
|
|
width: 100%;
|
|
}
|
|
|
|
.xian {
|
|
position: absolute;
|
|
left: 30px;
|
|
top: 96px;
|
|
width: 55px;
|
|
background: #FFFFFF;
|
|
height: 3px;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.footer {
|
|
height: 50px;
|
|
line-height: 50px;
|
|
color: #FFFFFF;
|
|
text-align: center;
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
background: url(img/bg.jpg) no-repeat center;
|
|
font-size: 12px;
|
|
}
|
|
</style>
|
|
<script type="text/javascript">
|
|
var h = $(window).height()
|
|
var h2 = h - 500
|
|
$(".content").height(h2)
|
|
console.log(h)
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|