From 4374b6e1637cac463720637abb5407bbdbe2cbd5 Mon Sep 17 00:00:00 2001 From: Lee-1203 <342694918@qq.com> Date: Mon, 14 Feb 2022 15:38:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=8F=8D=E9=A6=88=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/style.css | 58 +++++----------- index.html | 174 +++++++++-------------------------------------- js/javascript.js | 10 --- 3 files changed, 49 insertions(+), 193 deletions(-) diff --git a/css/style.css b/css/style.css index 25aacdf..3665432 100644 --- a/css/style.css +++ b/css/style.css @@ -286,11 +286,15 @@ min-height: 123px; } .first-txt{ - width: calc(100% - 16px); + width: calc(100% - 196px); } .first-txt>div{ - font-size: 15px; - line-height: 2; + font-size: 16px; + line-height: 1.5; + font-weight: bold; +} +.index-news-first:hover .first-txt>div{ + color: #de0011; } .first-txt>p{ font-size: 14px; @@ -316,40 +320,8 @@ margin: 10px 0; cursor: pointer; } -.index-news-list li .first-txt{ - display: flex; - align-items: center; - justify-content: space-between; -} -.index-news-list li.index-news-first .first-txt{ - display: block; - width: calc(100% - 196px); -} -.index-news-list li .first-img, -.index-news-list li .first-txt>p{ - display: none; -} -.index-news-list li.index-news-first .first-img, -.index-news-list li.index-news-first .first-txt>p{ - display: -webkit-box; -} -.index-news-list li .first-txt>div{ - width: 85%; -} -.index-news-list li.index-news-first .first-txt>div{ - width: 100%; - font-size: 16px; - font-weight: bold; - line-height: 1.5; - color: #de0011; -} - -.index-news-list li.index-news-first{ - margin-bottom: 20px; -} - .index-news-list li>a{ - width: 100%; + width: 85%; } .index-news-list li>a::before{ content: ""; @@ -360,10 +332,6 @@ margin:12px 10px 0 0; float: left; } - -.index-news-list li.index-news-first>a::before{ - display: none; -} .index-news-list li>span{ font-size: 13px; opacity: .7; @@ -371,6 +339,10 @@ .index-news-right{ width: calc(60% - 34px); } +.index-news-list li:hover a{ + color: #de0011; + transition: all .6s; +} /* 主营业务 */ .index-information{ @@ -2404,8 +2376,10 @@ textarea::-webkit-input-placeholder { } .foot-left>p{ font-size: 13px; - }.foot-left>p>span{ - display: block; + } + .foot-left>p>span{ + display: inline-block; + margin-left: 10px; } .foot-left>span{ font-size: 13px; diff --git a/index.html b/index.html index 3cae04d..379cd28 100644 --- a/index.html +++ b/index.html @@ -111,151 +111,43 @@
+
-
diff --git a/js/javascript.js b/js/javascript.js index ab29fbd..34ebd7a 100644 --- a/js/javascript.js +++ b/js/javascript.js @@ -37,16 +37,6 @@ jQuery(function($){ $(".index-news-all>div").eq($(this).index()).addClass("cur").siblings().removeClass('cur'); }); - // 首页新闻动态hover - $(".index-news-list>li").eq(0).addClass("index-news-first"); - $(".index-news-list>li").hover(function() { - $(".index-news-list>li").eq($(this).index()).addClass("index-news-first").siblings().removeClass('index-news-first'); - }); - $(".index-news-list-02>li").eq(0).addClass("index-news-first"); - $(".index-news-list-02>li").hover(function() { - $(".index-news-list-02>li").eq($(this).index()).addClass("index-news-first").siblings().removeClass('index-news-first'); - }); - // 首页主营业务切换 $(".index-business-item>li").eq(0).addClass("active"); $(".index-business-list>li").eq(0).addClass("cur");