0f7065fa by 任超

style:公示公告样式

1 parent 671438d8
......@@ -67,7 +67,7 @@
</div>
<div class="notice">
<h2>
<a title="公示公告" href="./staticViews/gsgg/index.html" class="news_title_content">
<a title="公示公告" href="./staticViews/gsgg.html" class="news_title_content">
<div class="news_title">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icongonggao"></use>
......
......@@ -5,6 +5,7 @@
.mainbody {
width: 1200px;
margin: 0 auto;
color: #4a4a4a;
}
/* --------------------导航tab------------------------- */
.navigation_crumbs {
......@@ -134,7 +135,7 @@ div.navigation {
display: inline-block;
}
.mainbody .DividingLine {
width: 1150px;
width: 1200px;
height: 1px;
margin:0 auto;
background-color:#DEDEDE;
......@@ -150,3 +151,7 @@ div.navigation {
line-height: 24px;
padding-bottom: 30px;
}
.notice_content {
margin-bottom: 100px;
line-height: 21px;
}
\ No newline at end of file
......
* {
margin: 0;
padding: 0;
}
::-webkit-input-placeholder { /* WebKit browsers */
font-size: 13px;
......@@ -20,12 +16,6 @@
input {
padding-left: 10px;
}
/*================首页 start=====================*/
div a {
color: #000000;
text-decoration: none;
}
div.subject h2 a:hover {
color: #f46143;
}
......@@ -218,10 +208,10 @@ div.navigation {
border-bottom: 1px solid #DEDEDE;
display: flex;
align-items: center;
position: relative;
}
.top > div {
margin: 0 auto;
display: inline-block;
}
.top span{
......@@ -240,30 +230,48 @@ div.navigation {
border-radius: 2px;
border: 1px solid #CBCBCB;
margin-left: 10px;
padding-left: 10px;
}
.top-title {
margin-right: 6%;
}
.top-serach {
position: absolute;
right: 0;
}
.top button {
width: 120px;
height: 40px;
background: #0091FF;
border: none;
border-radius: 3px;
color: white;
color: #FFFFFF;
font-weight: 100;
}
.gglist{
width:76%;
.announcement_list {
float: left;
width:81%;
}
.gglist{
border-right:1px solid #EAEAEA;
padding-bottom: 60px;
margin-top: 27px;
}
.gglist li{
height: 104px;
}
.gglist .icon {
width: 38px;
height: 104px;
float: left;
}
.gglist li{
border-bottom:1px solid #EAEAEA;
border-right:1px solid #EAEAEA
}
.listArea_right{
width: 23%;
width: 201px;
float: right;
text-align: right;
}
.diver{
width: 23%;
......@@ -282,6 +290,7 @@ div.navigation {
font-weight: 500;
color: #4A4A4A;
line-height: 18px;
font-weight: 600;
}
/* .top-date input:before {
content: attr(placeholder)
......@@ -353,10 +362,15 @@ div.navigation {
font-weight: bold;
color: #4A4A4A;
line-height: 104px;
padding-left: 20px;
padding-right: 20px;
}
.item_list {
margin-left: 51px;
width: 92%;
overflow: hidden;
text-overflow:ellipsis;
white-space: nowrap;
}
.right {
width: 200px;
margin-left: 15px;
......@@ -367,10 +381,11 @@ div.navigation {
height: 18px;
font-size: 18px;
font-weight: 500;
color: #4A4A4A;
line-height: 18px;
margin-bottom: 19px;
margin-top:30px
margin-top:30px;
font-weight: 600;
color: #4a4a4a;
}
.right-body {
display: inline-block;
......@@ -383,7 +398,9 @@ div.navigation {
}
.tj img, .tj span {
float: left;
width: 100%;
display: block;
text-align: left;
}
.tj-title {
......@@ -404,9 +421,9 @@ div.navigation {
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #9B9B9B;
line-height: 12px;
display: inline-block;
margin-top: 6px;
margin-bottom: 20px;
}
.right-bottom {
......@@ -436,30 +453,54 @@ div.navigation {
.zcfg-top {
width: 200px;
height: 14px;
font-size: 14px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: bold;
color: #4A4A4A;
line-height: 14px;
line-height: 21px;
text-align: left;
}
.zcfg-body {
width: 200px;
font-size: 14px;
display: inline-block;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #6D7278;
line-height: 21px;
line-height: 23px;
text-align: left;
}
.zcfg-bottom {
width: 90px;
height: 12px;
font-size: 12px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #9B9B9B;
line-height: 12px;
line-height: 21px;
text-align: left;
}
.rightcontainer {
margin-bottom: 20px;
}
#test1 {
text-align: center;
margin-top: -30px;
margin-bottom: 100px;
}
.layui-laypage .layui-laypage-curr .layui-laypage-em {
background-color: #0091FF!important;
}
.top-date span{
display: inline-block;
float: left;
margin-top: 12px;
}
.top-date input {
float: left;
}
input {
color: #4a4a4a!important;
font-weight: 100!important;
}
.layui-laydate .layui-this {
background-color: #0091FF!important;
}
\ No newline at end of file
......
......@@ -5,4 +5,22 @@ layui.use('element', function () {
//console.log(elem)
layer.msg(elem.text());
});
layui.use('laydate', function(){
var laydate = layui.laydate;
//常规用法
laydate.render({
elem: '#date'
});
})
layui.use('laypage', function(){
var laypage = layui.laypage;
//执行一个laypage实例
laypage.render({
elem: 'test1' //注意,这里的 test1 是 ID,不用加 # 号
,count: 50 //数据总数,从服务端得到
});
});
});
\ No newline at end of file
......
......@@ -28,7 +28,7 @@
<div>发布日期:2020-10-28</div>
</div>
<div class="DividingLine"></div>
<div>
<div class="notice_content">
近日,自然资源部印发《自然资源统计工作管理办法》,旨在规范自然资源统计管理工作,建立健全统计数据质量控制体系,提高自然资源统计数据的真实性,发挥统计在自然资源管理中的重要基础性作用,该办法将于2020年8月1日起施行。
《自然资源统计工作管理办法》 一、明确自然资源统计主要任务
对7大类自然资源对象(土地、矿产、森林、草原、湿地、水、海域海岛),以及其他统计对象(海洋经济、地质勘查、地质灾害、测绘地理信息、自然资源督察、行政管理)开展统计调查和统计分析,提供统计数据,实施统计监督。
......
* {
padding: 0;
margin: 0;
}
.main {
}
.mainbody{
width: 1200px;
margin: 0 auto;
}
/*================首页 start=====================*/
div a {
color: #000000;
text-decoration: none;
}
div.subject h2 a:hover {
color: #f46143;
}
div.subject {
margin: 0 auto;
float: none;
clear: both;
position: relative;
min-width: 1200px;
}
/*新闻 */
div.top-logo {
width: 1200px;
height: 70px;
padding-top: 20px;
}
div.top-logo ::-webkit-input-placeholder { /* WebKit browsers */
font-size: 13px;
}
div.top-logo ::-moz-placeholder { /* Mozilla Firefox 19+ */
font-size: 13px;
}
div.top-logo :-ms-input-placeholder { /* Internet Explorer 10+ */
font-size: 13px;
}
.top_logo_content {
height: 40px;
width: 100%;
margin: 0 auto;
}
div.top-logo .top_logo_search {
float: left;
width: 350px;
position: relative;
margin-left: 400px;
}
div.top-logo .top_logo_search input {
border-radius: 50px;
}
div.top-logo .login {
float: right;
margin-top: 8px;
}
div.top-logo .top_logo_search i {
position: absolute;
right: 10px;
top: 11px;
cursor: pointer;
}
/*end*/
.top-logo h1 {
display: inline-block;
float: left;
}
.layui-nav-item a{
font-size: 16px;
}
/*------------------首页 end------------*/
/* --------------------导航tab------------------------- */
.navigation_crumbs {
width: 100%;
height: 45px;
padding: 10px 0;
line-height: 25px;
background: #FAFAFA;
border: 1px solid #E6E6E6;
box-sizing: border-box;
}
.navigation_crumbs .layui-breadcrumb a:hover {
color: #f46143!important;
}
.contentBox {
width: 1200px;
margin: 0 auto;
overflow: hidden;
}
.one_content {
border: 1px solid #DEDEDE;;
margin-top: 30px;
}
.one_content .layui-tab {
margin: 0;
}
.one_content .layui-tab-title li {
width: 100px;
font-weight: 600;
color: #6D7278;
}
.one_content .layui-tab-title .layui-this {
color: #4A4A4A;
}
.layui-tab-brief>.layui-tab-more li.layui-this:after, .layui-tab-brief>.layui-tab-title .layui-this:after {
border-color: #006CFF;
}
.layui-tab .layui-tab-brief .layui-this {
color: #006CFF;
}
.layui-tab .layui-tab-brief li {
width: 90px;
}
.online_business {
margin-top: 20px;
}
.online_business h2 {
width: 100%;
height: 43px;
line-height: 43px;
background: #FAFAFA;
border-radius: 4px;
border: 1px solid #DEDEDE;
padding-left: 15px;
box-sizing: border-box;
}
.online_list {
padding-bottom: 20px;
overflow: hidden;
}
.online_list li{
width: 45%!important;
float: left;
height: 60px;
line-height: 60px;
border-bottom: 1px dotted #DEDEDE;
}
.online_list li:nth-child(even) {
margin-left: 10%;
}
.online_list li a{
display: block;
width: 100%;
}
.online_list li a:hover span{
color: #f46143;
}
.online_list li a button {
float: right;
margin-top: 15px;
}
/* ---------------------------------------------------- */
.top-logo ul li {
display: inline-block;
padding: 0 8px;
}
.top-logo ul li:first-child {
border-right: 1px solid grey;
}
div.navigation {
text-align: center;
}
.navigation .layui-nav-item {
width: 130px;
position: relative;
margin: 0 22px;
}
.layui-bg-blue {
background-color: #006CFF!important;
}
.layui-nav-item:not(:first-child)::before {
content: '';
position: absolute;
height: 22px;
border-left: 1px solid #ccc;
top: 21px;
left: -20px;
}
.title {
height: auto;
font-size: 30px;
font-weight: 500;
color: #4A4A4A;
line-height: 30px;
text-align: center;
padding: 20px;
}
.release {
display: flex;
flex-flow: row nowrap;
justify-content: space-between;
font-size: 16px;
font-weight: 400;
color: #6D7278;
line-height: 12px;
margin-top: 20px;
margin-bottom: 20px;
}
.release div {
display: inline-block;
}
.body {
padding-top: 20px;
border-top: 1px solid #DEDEDE;
height: auto;
font-size: 16px;
font-weight: 400;
color: #4A4A4A;
line-height: 24px;
padding-bottom: 30px;
}
/* -----------------底部start----------------------------- */
div.footer {
background-color: #233042;
}
div.footer .system_service {
width: 100%;
border-bottom: 1px solid #4A4A4A;
}
div.footer .system_service ul {
padding: 40px 0;
width: 1400px;
margin: 0 auto;
font-size: 0;
}
div.footer .system_service ul li {
width: 20%;
display: inline-block;
text-align: center;
height: 18px;
box-sizing: border-box;
}
div.footer .system_service ul li:not(:last-child) {
border-right: 1px solid #6D7278;
}
div.footer .system_service ul li a{
font-size: 16px;
font-weight: 400;
color: #DEDEDE;
}
div.footer .system_service ul li a:hover {
color: #f46143;
}
.footer .subject {
width: 1200px;
margin: 0 auto;
padding: 40px 0;
overflow: hidden;
}
.footer .subject .footer_logo {
float: left;
}
.footer .subject .footer_logo a{
display: block;
width: 64px;
height: 74px;
padding: 10px;
}
.footer .subject .footer_logo a img {
width: 100%;
height: 100%;
}
.footer .subject ul, ol {
float: left;
color: #CBCBCB;
text-align: left;
}
.footer .subject ul {
width: 72%;
box-sizing: border-box;
padding-left: 40px;
margin-top: 10px;
}
.footer .subject ul li {
width: 30%;
display: inline-block;
text-align: left;
margin-bottom: 30px;
}
.footer .subject ol li {
display: inline-block;
text-align: center;
}
.footer .subject ol li:last-child {
margin-left: 60px;
}
.footer .subject ol li img {
width: 80px;
height: 80px;
}
.footer .subject ol li p {
font-size: 12px;
color: #CBCBCB;
margin-top: 5px;
}
\ No newline at end of file
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style>
</style>
......@@ -25,11 +24,14 @@
<div class="top-title">
<span>标题内容:</span><input type="text" placeholder="请输入标题内容">
</div>
<div class="top-date ">
<span>发布时间:</span><input type="date" placeholder="选择时间">
<div class="top-date">
<span>发布时间:</span> <input type="text" class="layui-input" id="date" placeholder="请选择时间">
</div>
<div class="top-serach">
<button>查询</button>
<button>
<i class="layui-icon">&#xe615;</i>
查询
</button>
</div>
</div>
<div class="layui-tab layui-tab-brief" lay-filter="">
......@@ -41,18 +43,23 @@
</div>
<!-- 列表区域 -->
<div class="listArea">
<ul class="gglist">
<li>
<a href="./ggxq.html" target="_blank">
<div class="gg">
<button type="button" class="layui-btn layui-btn-warm layui-btn-xs">公告</button>
党的十八大以来双拥工作综述:为实现中国梦强军梦凝聚强大力量 前三季度主要指标由负转正
</div>
</a>
</li>
</ul>
<div id="test1"></div>
<div class="announcement_list">
<ul class="gglist">
<li>
<a href="./ggxq.html" target="_blank">
<div class="gg">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icongonggao1"></use>
</svg>
<p class="item_list">
党的十八大以来双拥工作综述:为实现中国梦强军梦凝聚强大力量 前三季度主要指标由负转正
</p>
</div>
</a>
</li>
</ul>
<div id="test1"></div>
</div>
<div class="listArea_right">
<ul class="rightcontainer">
<h2 class="right-top">新闻推荐</h2>
......@@ -75,26 +82,26 @@
<li>
<div class="zcfg">
<div class="zcfg-top">
<span>爬山虎国土空间规划信息化解决</span>
爬山虎国土空间规划信息化解决
</div>
<div class="zcfg-body">
<span>10月21日,农业农村部举行新闻发布会,介绍2020年前三季度农业农村经济形势。</span>
10月21日,农业农村部举行新闻发布会,介绍2020年前三季度农业农村经济形势。
</div>
<div class="zcfg-bottom">
<span>2020-10-28</span>
2020-10-28
</div>
</div>
</li>
<li>
<div class="zcfg">
<div class="zcfg-top">
<span>爬山虎国土空间规划信息化解决</span>
爬山虎国土空间规划信息化解决
</div>
<div class="zcfg-body">
<span>10月21日,农业农村部举行新闻发布会,介绍2020年前三季度农业农村经济形势。</span>
10月21日,农业农村部举行新闻发布会,介绍2020年前三季度农业农村经济形势。
</div>
<div class="zcfg-bottom">
<span>2020-10-28</span>
2020-10-28
</div>
</div>
</li>
......