dev
ihzero 2025-03-13 22:01:27 +08:00
parent f9b39bde5f
commit f9e1fe72f0
20 changed files with 748 additions and 1 deletions

3
.vscode/settings.json vendored 100644
View File

@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 586 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 585 KiB

View File

@ -1,4 +1,14 @@
$(function () { $(function () {
jQuery(".fade-img a").SwitchFade({
text: '.fade-txt a',
prev: '.fade-left',
next: '.fade-right',
num: '.x',
className: 'cur',
playTime: 10000,
lendy: '.dy-lens',
indy: '.dy-index',
// autoPlay:false //是否自动轮播
});
}); });

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -0,0 +1,382 @@
* {
box-sizing: border-box;
}
body {
background: url(body-bg.jpg) center top repeat-x;
}
.container {
width: 1300px;
margin: 0 auto;
}
.head {
height: 189px;
width: 100%;
background: url(top-bg.png) no-repeat center;
}
.head .top {
display: flex;
align-items: center;
height: 100%;
justify-content: space-between;
}
.head a {
display: inline-block;
text-align: center;
}
.head .top-l img {
width: 845px;
}
.head .top-r img {
width: 430px;
}
.nav {
background-color: #154d9b;
}
.nav-box {
display: flex;
margin: 0 auto;
height: 62px;
align-items: center;
justify-content: space-between;
}
.navbar {
display: flex;
align-items: center;
flex-wrap: wrap;
}
.navbar li + li {
margin-left: 10px;
}
.navbar li a {
font-size: 16px;
color: #fff;
}
.navbar li .zhsk {
content: url(nav_zhsk.png);
width: 73px;
height: 21px;
}
.navbar li .ggw {
content: url(nav_gaige.png);
width: 50px;
height: 21px;
}
.navbar li .cxgc {
content: url(nav_cxgc.png);
width: 73px;
height: 21px;
}
.search {
position: relative;
}
.search .icon {
width: 30px;
height: 30px;
cursor: pointer;
background: url(navrarr.jpg) no-repeat center;
}
.search-container {
visibility: hidden;
opacity: 0;
position: absolute;
background: #ccc;
padding: 12px 13px;
border-radius: 8px;
display: flex;
align-items: center;
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
right: -30px;
top: 40px;
transition: opacity 0.3s ease, visibility 0.3s ease;
}
.search:hover .search-container {
visibility: visible;
opacity: 1;
}
.search-container::before {
content: '';
position: absolute;
top: -8px;
right: 35px;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
border-bottom: 10px solid #ccc;
width: 0;
height: 0;
}
.search-input {
width: 240px;
height: 36px;
border: none;
border-radius: 3px;
font-size: 14px;
background-color: #fff;
padding: 0 10px;
outline: none;
}
.search-input::placeholder {
color: #aaa;
}
.search-button {
flex: none;
padding: 0 10px;
height: 36px;
border: none;
background: white;
color: black;
font-size: 14px;
cursor: pointer;
border-radius: 3px;
margin-left: 5px;
box-shadow: inset 0px 0px 2px rgba(0, 0, 0, 0.1);
}
.search-button:hover {
background: #eee;
}
.fade-box,
.fade-img {
height: 250px;
position: relative;
overflow: hidden;
}
.fade-img a {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.fade-img img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}
.fade-btn {
position: absolute;
width: 34px;
height: 68px;
top: 50%;
transform: translateY(-50%);
background: url(swiper-arrow.png) center no-repeat;
cursor: pointer;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s, visibility 0.3s;
z-index: 10;
}
.fade-left {
left: 40px;
background-position: left;
}
.fade-right {
right: 40px;
background-position: right;
}
.fade-box:hover .fade-btn {
opacity: 0.7;
visibility: visible;
}
footer .link {
background-color: #0e3890;
height: 56px;
}
.link-box {
height: 56px;
display: flex;
align-items: center;
justify-content: space-between;
}
.link-box .link-item {
height: 100%;
line-height: 56px;
position: relative;
}
.link-box a {
display: inline-block;
}
.link-box span {
vertical-align: middle;
font-size: 16px;
color: #fff;
}
.dropdown img {
margin-left: 5px;
transition: transform 0.3s;
}
.dropdown-box {
position: absolute;
bottom: 56px;
left: 50%;
width: 240px;
transform: translateX(-50%);
background-color: #fff;
border: 1px solid #ccc;
visibility: hidden;
opacity: 0;
height: 250px;
font-size: 14px;
color: #000;
overflow-y: auto;
transition: opacity 0.3s, visibility 0.3s;
}
.dropdown:hover .dropdown-box {
visibility: visible;
opacity: 1;
}
.dropdown-box .dropdown-title {
color: #0e3890;
font-weight: bold;
text-align: center;
font-size: 16px;
background-color: #e2e2e2;
}
.dropdown-box li {
line-height: 28px;
}
.dropdown-box li a {
height: 100%;
width: 100%;
display: block;
padding: 0 10px;
}
.dropdown-box li a:hover {
background-color: #0e3890;
color: #fff;
}
.dropdown:hover img {
transform: rotate(180deg);
}
footer .info {
background-color: #f2f2f2;
}
.info-box {
display: flex;
font-size: 14px;
color: #404040;
height: 215px;
align-items: center;
justify-content: space-between;
}
.info-logo {
display: inline-block;
height: 50px;
}
.info-logo img {
width: 544px;
height: 41px;
}
.info .qrcode {
text-align: center;
margin-left: 40px;
}
.info .qrcode img {
width: 130px;
height: 130px;
}
.info-r {
display: flex;
}
.underline {
background-color: #e2e2e2;
}
.underline-box {
height: 46px;
font-size: 14px;
line-height: 46px;
text-align: center;
color: #404040;
}
.underline-box a{
display: inline-block;
}
.underline-box a:hover{
color: #c92e1a;
}
@media screen and (max-width: 768px) {
.container {
width: 100%;
}
.head{
height: unset;
}
.head .top {
flex-direction: column;
justify-content: center;
align-items: center;
margin-top: 50px;
}
.head .top-l img{
width: 90%;
}
.head .top-r{
margin-top: 20px;
}
.head .top-r img{
width: 60%;
}
.nav-box{
height: unset;
}
.navbar{
justify-content: start;
}
.navbar li{
/* flex: 1 0 33.3%; */
width: 33.3%;
text-align: center;
}
.navbar li + li{
margin-left: 0;
}
.info-box{
flex-direction: column;
height: unset;
justify-content: center;
align-items: center;
}
.info-logo img{
width: 80%;
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

225
static/头尾.html 100644
View File

@ -0,0 +1,225 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<trs_template tempname="meta通用概览" />
<title>
<trs_channel FIELD="chnldesc" id="owner" autolink="false"></trs_channel>_<trs_website field="sitedesc">
</trs_website>
</title>
<link rel="stylesheet" type="text/css" href="./resources/common/common.css" />
<link rel="stylesheet" type="text/css" href="./resources/common/headfoot.css" />
<script type="text/javascript" src="./resources/common/jquery.min.js"></script>
<script type="text/javaScript" src="./resources/common/common.js"></script>
<script type="text/javascript" src="./resources/common/setFont.js"></script>
<script type="text/javascript" src="./resources/common/base.js"></script>
</head>
<body>
<!-- 头部 开始 -->
<header>
<div class="head">
<div class="top container">
<a class="top-l">
<img src="./resources/common/toplogo3.png">
</a>
<a class="top-r">
<img src="./resources/common/toplogo2.png">
</a>
</div>
</div>
<div class="nav">
<div class="nav-box container">
<ul class="navbar">
<li><a href="#">首页</a></li>
<li><a href="#">院情概览</a></li>
<li><a href="#">机构设置</a></li>
<li><a href="#">本院新闻</a></li>
<li><a href="#">研究阐释</a></li>
<li><a href="#">决策服务</a></li>
<li><a href="#">述学立论</a></li>
<li><a href="#">党的建设</a></li>
<li><a href="#">市中特中心</a></li>
<li><a href="#">编辑出版</a></li>
<li><a href="#">专家学者</a></li>
<li><a href="#">专题聚焦</a></li>
<li><a href="#">文献资源</a></li>
<li><a href="#" class="zhsk">智慧社科</a></li>
<li><a href="#" class="ggw">改革网</a></li>
<li><a href="#" class="cxgc">创新工程</a></li>
</ul>
<div class="search pcshow">
<div class="icon"></div>
<div class="search-container">
<input type="text" class="search-input" placeholder="请输入关键词">
<button class="search-button">搜 索</button>
</div>
</div>
</div>
</div>
<div class="fade-box">
<div class="fade-img">
<a href=""><img src="./resources//common/banner-01.png" alt=""></a>
<a href=""><img src="./resources//common/banner-02.png" alt=""></a>
<a href=""><img src="./resources//common/banner-01.png" alt=""></a>
<a href=""><img src="./resources//common/banner-02.png" alt=""></a>
<a href=""><img src="./resources//common/banner-01.png" alt=""></a>
</div>
<div class="fade-btn fade-left"></div>
<div class="fade-btn fade-right"></div>
</div>
</header>
<!-- 头部 结束 -->
<!-- 主体 开始 -->
<main>
</main>
<!-- 主体 结束 -->
<!-- 底部 开始 -->
<footer>
<div class="link pcshow">
<ul class="link-box container">
<li class="link-item">
<a href="#">
<span>友情链接</span>
</a>
</li>
<li class="link-item dropdown">
<a href="#">
<span>政府部门</span>
<img src="./resources/common/ico_up.png">
</a>
<ul class="dropdown-box">
<li class="dropdown-title">标题</li>
<li>
<a href="#">内容</a>
</li>
<li>
<a href="#">内容</a>
</li>
<li>
<a href="#">内容</a>
</li>
<li>
<a href="#">内容</a>
</li>
<li>
<a href="#">内容</a>
</li>
<li>
<a href="#">内容</a>
</li>
<li>
<a href="#">内容</a>
</li>
<li>
<a href="#">内容</a>
</li>
<li>
<a href="#">内容</a>
</li>
<li>
<a href="#">内容</a>
</li>
</ul>
</li>
<li class="link-item dropdown">
<a href="#">
<span>省市社科院</span>
<img src="./resources/common/ico_up.png">
</a>
<ul class="dropdown-box">
<li class="dropdown-title">标题</li>
<li>
<a href="#">内容</a>
</li>
</ul>
</li>
<li class="link-item dropdown">
<a href="#">
<span>省市政府发展研究中心</span>
<img src="./resources/common/ico_up.png">
</a>
<ul class="dropdown-box">
<li class="dropdown-title">标题</li>
<li>
<a href="#">内容</a>
</li>
</ul>
</li>
<li class="link-item dropdown">
<a href="#">
<span>省市社科联</span>
<img src="./resources/common/ico_up.png">
</a>
<ul class="dropdown-box">
<li class="dropdown-title">标题</li>
<li>
<a href="#">内容</a>
</li>
</ul>
</li>
<li class="link-item dropdown">
<a href="#">
<span>新闻媒体</span>
<img src="./resources/common/ico_up.png">
</a>
<ul class="dropdown-box">
<li class="dropdown-title">标题</li>
<li>
<a href="#">内容</a>
</li>
</ul>
</li>
</ul>
</div>
<div class="info">
<div class="container info-box">
<div class="info-l">
<a href="#" class="info-logo">
<img src="./resources/common/bottomlogo.png" alt="" srcset="">
</a>
<div>
<p>
地址重庆市江北区桥北村270号
</p>
<p>
邮编400020
</p>
<p>
电话023-67996600&nbsp;&nbsp;&nbsp;&nbsp;023-67992029
</p>
</div>
</div>
<div class="info-r">
<div id="_ideConac"></div>
<script src="//dcs.conac.cn/js/04/064/0000/60403026/CA040640000604030260001.js"
type="text/javascript"></script>
<div class="qrcode">
<img src="./resources//common/qrcode.jpg">
<p>官方微信公众号</p>
</div>
</div>
</div>
<div class="underline">
<div class="underline-box container">
<a href="https://beian.miit.gov.cn/" target="_blank">渝ICP备14000456号-2</a> <a target="_blank"
href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=50010502000791"><img
src="./resources/common/gaj.gif">渝公网安备 50010502000791号</a>
</div>
</div>
</div>
</footer>
<!-- 底部 结束 -->
</body>
</html>

View File

@ -0,0 +1,127 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>重庆社会科学院</title>
<style>
/* 页面基础样式 */
body {
margin: 0;
font-family: Arial, sans-serif;
}
/* 顶部导航栏样式 */
.navbar {
background-color: #003366;
color: white;
padding: 10px 0;
text-align: center;
}
.navbar a {
color: white;
text-decoration: none;
margin: 0 15px;
font-size: 14px;
}
.navbar a:hover {
text-decoration: underline;
}
/* 底部信息栏样式 */
.footer {
background-color: #f4f4f4;
padding: 20px 40px;
display: flex;
justify-content: space-between;
align-items: center;
}
/* 左侧信息部分 */
.footer-left {
font-size: 14px;
color: #333;
line-height: 1.8;
}
.footer-left h4 {
margin: 0;
font-size: 16px;
font-weight: bold;
color: #003366;
}
/* 右侧图标和二维码部分 */
.footer-right {
display: flex;
align-items: center;
}
.footer-right img {
height: 80px;
margin-left: 20px;
}
.footer-right .qr-code {
text-align: center;
}
.footer-right .qr-code span {
display: block;
margin-top: 5px;
font-size: 12px;
color: #666;
}
/* 底部备案信息 */
.footer-bottom {
background-color: #f4f4f4;
text-align: center;
padding: 10px 0;
font-size: 12px;
color: #666;
}
</style>
</head>
<body>
<!-- 顶部导航栏 -->
<div class="navbar">
<a href="#">友情链接</a>
<a href="#">政府部门</a>
<a href="#">省市社科院 ▲</a>
<a href="#">省市政府发展研究中心 ▲</a>
<a href="#">省市社科联 ▲</a>
<a href="#">新闻媒体</a>
</div>
<!-- 底部信息栏 -->
<div class="footer">
<!-- 左侧信息 -->
<div class="footer-left">
<h4>重庆社会科学院(重庆市人民政府发展研究中心)</h4>
<p>
Chongqing Academy of Social Sciences (The Development Research Center of Chongqing Municipal People's Government)<br>
地址重庆市江北区桥北村270号<br>
邮编400020<br>
电话023-67996600&nbsp;&nbsp;023-67992029
</p>
</div>
<!-- 右侧图标和二维码 -->
<div class="footer-right">
<img src="https://via.placeholder.com/80" alt="图标">
<div class="qr-code">
<img src="https://via.placeholder.com/80" alt="二维码">
<span>官方微信公众号</span>
</div>
</div>
</div>
<!-- 底部备案信息 -->
<div class="footer-bottom">
渝ICP备14000458号-2 ◎渝公网安备 50010502000791号
</div>
</body>
</html>