5db3d278 by 任超

style:样式

1 parent 0a35bd32
...@@ -14,18 +14,24 @@ ...@@ -14,18 +14,24 @@
14 min-height: 630px; 14 min-height: 630px;
15 } 15 }
16 .item_list li{ 16 .item_list li{
17 line-height: 50px; 17 line-height: 40px;
18 padding-top: 10px;
18 border-bottom: 1px solid #DEDEDE; 19 border-bottom: 1px solid #DEDEDE;
19 box-sizing: border-box; 20 box-sizing: border-box;
20 padding-right: 20px; 21 padding-right: 20px;
21 } 22 }
22 23 .item_list li .istop {
24 width: 36px;
25 float: right;
26 margin-top: 3px;
27 margin-left: 10px;
28 }
23 29
24 .item_list li p{ 30 .item_list li p{
25 display: inline-block; 31 display: inline-block;
26 font-size: 20px; 32 font-size: 20px;
27 color: #4a4a4a; 33 color: #4a4a4a;
28 width: 82%; 34 width: 79%;
29 white-space:nowrap; 35 white-space:nowrap;
30 overflow:hidden; 36 overflow:hidden;
31 text-overflow:ellipsis; 37 text-overflow:ellipsis;
......
1 .top-logo ul li {
2 display: inline-block;
3 padding: 0 8px;
4 }
5
6 .top-logo ul li:first-child {
7 border-right: 1px solid grey;
8 }
9
10 div.navigation {
11 text-align: center;
12 }
13
14 .navigation .layui-nav-item {
15 width: 147px;
16 position: relative;
17 }
18 .layui-bg-blue {
19 background-color: #006CFF !important;
20 }
21 .layui-nav-item a{
22 font-size: 16px;
23 }
24
25 /*------------------首页 end------------*/
26 /* --------------------导航tab------------------------- */ 1 /* --------------------导航tab------------------------- */
27 .navigation_crumbs { 2 .navigation_crumbs {
28 width: 100%; 3 width: 100%;
...@@ -280,7 +255,7 @@ div.navigation { ...@@ -280,7 +255,7 @@ div.navigation {
280 .gg { 255 .gg {
281 text-overflow: clip; 256 text-overflow: clip;
282 overflow: hidden; 257 overflow: hidden;
283 height: 100px; 258 height: 80px;
284 font-size: 20px; 259 font-size: 20px;
285 font-weight: bold; 260 font-weight: bold;
286 color: #4A4A4A; 261 color: #4A4A4A;
......
...@@ -14,7 +14,8 @@ ...@@ -14,7 +14,8 @@
14 min-height: 630px; 14 min-height: 630px;
15 } 15 }
16 .item_list li{ 16 .item_list li{
17 line-height: 50px; 17 padding-top: 10px;
18 line-height: 40px;
18 border-bottom: 1px solid #DEDEDE; 19 border-bottom: 1px solid #DEDEDE;
19 box-sizing: border-box; 20 box-sizing: border-box;
20 padding-right: 20px; 21 padding-right: 20px;
...@@ -22,12 +23,18 @@ ...@@ -22,12 +23,18 @@
22 .policy_list_con li { 23 .policy_list_con li {
23 margin-bottom: 10px; 24 margin-bottom: 10px;
24 } 25 }
26 .item_list li .istop {
27 width: 36px;
28 float: right;
29 margin-top: 3px;
30 margin-left: 10px;
31 }
25 32
26 .item_list li p{ 33 .item_list li p{
27 display: inline-block; 34 display: inline-block;
28 font-size: 20px; 35 font-size: 20px;
29 color: #4a4a4a; 36 color: #4a4a4a;
30 width: 82%; 37 width: 79%;
31 white-space:nowrap; 38 white-space:nowrap;
32 overflow:hidden; 39 overflow:hidden;
33 text-overflow:ellipsis; 40 text-overflow:ellipsis;
......
...@@ -30,6 +30,9 @@ function getLawsArticleList() { ...@@ -30,6 +30,9 @@ function getLawsArticleList() {
30 li = '<li>'; 30 li = '<li>';
31 li += '<a href="./law/'+result.data.records[i].id+'.html" title="' + result.data.records[i].headline + '" target="_blank">' 31 li += '<a href="./law/'+result.data.records[i].id+'.html" title="' + result.data.records[i].headline + '" target="_blank">'
32 li += '<p>' + result.data.records[i].headline + '</p>'; 32 li += '<p>' + result.data.records[i].headline + '</p>';
33 if (result.data.records[i].isTop == '1') {
34 li += '<img class="istop" src="../staticImages/ding.png">'
35 }
33 li += '<span>' + result.data.records[i].deadtime + '</span>'; 36 li += '<span>' + result.data.records[i].deadtime + '</span>';
34 li += '</a>'; 37 li += '</a>';
35 li += '</li>'; 38 li += '</li>';
......
1 $(function () { 1 $(function () {
2 newsDetail() 2 // newsDetail()
3 }) 3 })
4 4
5 layui.use('element', function () { 5 layui.use('element', function () {
......
...@@ -30,6 +30,9 @@ function getLawsArticleList() { ...@@ -30,6 +30,9 @@ function getLawsArticleList() {
30 li = '<li>'; 30 li = '<li>';
31 li += '<a href="./policy/'+result.data.records[i].id+'.html" title="' + result.data.records[i].headline + '" target="_blank">' 31 li += '<a href="./policy/'+result.data.records[i].id+'.html" title="' + result.data.records[i].headline + '" target="_blank">'
32 li += '<p>' + result.data.records[i].headline + '</p>'; 32 li += '<p>' + result.data.records[i].headline + '</p>';
33 if (result.data.records[i].isTop == '1') {
34 li += '<img class="istop" src="../staticImages/ding.png">'
35 }
33 li += '<span>' + result.data.records[i].deadtime + '</span>'; 36 li += '<span>' + result.data.records[i].deadtime + '</span>';
34 li += '</a>'; 37 li += '</a>';
35 li += '</li>'; 38 li += '</li>';
......
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
76 <div class="gg"> 76 <div class="gg">
77 {{# if(item.noticeType == 1){ }} 77 {{# if(item.noticeType == 1){ }}
78 <svg class="icon svg-icon" aria-hidden="true"> 78 <svg class="icon svg-icon" aria-hidden="true">
79 <use xlink:href="#icongongshi"></use> 79 <use xlink:href="#icongongshi"></use>
80 </svg> 80 </svg>
81 {{# } }} 81 {{# } }}
82 {{# if(item.noticeType == 2){ }} 82 {{# if(item.noticeType == 2){ }}
......