From f2c025f189dfb52f15560ed1d9600016b29c2821 Mon Sep 17 00:00:00 2001 From: chutingting Date: Fri, 12 Jan 2024 23:00:54 +0800 Subject: [PATCH] edit css --- src/components/hotNews/index.vue | 4 ++-- src/views/information/index.vue | 34 +------------------------------- 2 files changed, 3 insertions(+), 35 deletions(-) diff --git a/src/components/hotNews/index.vue b/src/components/hotNews/index.vue index 4a44e11..ad17167 100644 --- a/src/components/hotNews/index.vue +++ b/src/components/hotNews/index.vue @@ -82,7 +82,7 @@ export default { font-size: 18px; font-weight: bold; color: #FFFFFF; - line-height: 48px; + line-height: 80px; width: 100%; background-color: #0000007e; } @@ -188,7 +188,7 @@ export default { font-size: 18px; font-weight: bold; color: #FFFFFF; - line-height: 48px; + line-height: 80px; width: 100%; background-color: #0000007e; } diff --git a/src/views/information/index.vue b/src/views/information/index.vue index 0d40e39..be6c295 100644 --- a/src/views/information/index.vue +++ b/src/views/information/index.vue @@ -216,7 +216,7 @@ export default { font-size: 18px; font-weight: bold; color: #FFFFFF; - line-height: 48px; + line-height: 80px; width: 90%; background-color: #0000007e; } @@ -303,38 +303,6 @@ export default { min-height: 100px; .content { margin-top: 20px; - .top { - margin-bottom: 30px; - background-color: #FFFFFF; - display: flex; - background-image: url('../../assets/hotTopLeft.png'); - background-position: 101% 0; /* 调整这些值来改变显示的部分 */ - background-size: 30% 50%; /* 使用 'cover' 或 'contain',或者设置具体尺寸 */ - background-repeat: no-repeat; - #imgtxt { - width: 560px; - position: relative; - display: flex; - justify-content: center; - align-items: center; - margin-left: 20px; - img { - width: 560px; - } - .newsTitle{ - position: absolute; - bottom: 5%; - left: 0; - display: inline-block; - font-size: 18px; - font-weight: bold; - color: #FFFFFF; - line-height: 48px; - width: 100%; - background-color: #0000007e; - } - } - } } }