Commit b80e92e952be9f43750801da343899520d5f2a63
1 parent
0c0cba64
add 黄石官网新闻详情优化
Showing
1 changed file
with
16 additions
and
1 deletions
src/views/home.vue
@@ -57,7 +57,7 @@ | @@ -57,7 +57,7 @@ | ||
57 | </div> | 57 | </div> |
58 | <div class="news_cont" v-if="!see"> | 58 | <div class="news_cont" v-if="!see"> |
59 | <div class="returnLastbtn" @click="backIndex()">返回</div> | 59 | <div class="returnLastbtn" @click="backIndex()">返回</div> |
60 | - <div v-html="newscontent"></div> | 60 | + <div v-html="newscontent" id="news-content" class="news-content"></div> |
61 | </div> | 61 | </div> |
62 | </div> | 62 | </div> |
63 | </template> | 63 | </template> |
@@ -647,4 +647,19 @@ | @@ -647,4 +647,19 @@ | ||
647 | text-indent: 24px; | 647 | text-indent: 24px; |
648 | line-height:24px; | 648 | line-height:24px; |
649 | } | 649 | } |
650 | + .news-content{ | ||
651 | + margin-top: 20px; | ||
652 | + } | ||
653 | + #news-content p{ | ||
654 | + margin: 20px 0; | ||
655 | + text-align: left; | ||
656 | + line-height: 20px; | ||
657 | + margin-block-end: 1em; | ||
658 | + margin-inline-start: 0px; | ||
659 | + margin-inline-end: 0px; | ||
660 | + } | ||
661 | + #news-content a { | ||
662 | + text-shadow: none; | ||
663 | + color: #337ab7; | ||
664 | + } | ||
650 | </style> | 665 | </style> |