From 10f551ee19a62a7ad52473fb0535444471a5f369 Mon Sep 17 00:00:00 2001 From: xuanchen <122383162@qq.com> Date: Wed, 17 Mar 2021 15:53:24 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/assets/index/css/style.css | 35 ++++++++++++++++++++ resources/views/index/index.blade.php | 47 +++++++++++++++++++-------- 2 files changed, 69 insertions(+), 13 deletions(-) diff --git a/public/assets/index/css/style.css b/public/assets/index/css/style.css index 2e2c335..fcb1ced 100644 --- a/public/assets/index/css/style.css +++ b/public/assets/index/css/style.css @@ -1719,3 +1719,38 @@ img { .laytool-ul li:hover .wechat-code { display: block; } + +.newCont-ul:last-child { + position: relative; +} + +.newCont-ul:last-child::after { + position: absolute; + content: ''; + left: -20px; + top: 0; + width: 1px; + height: 100%; + background: #f1f1f1; +} + +.newCont { + width: 650px; + float: left; + margin-left: 20px; + display: flex; +} + +.newCont-ul { + width: calc(50% - 20px); + margin-left: 20px +} + +.newCont-ul a { + padding: 0 !important; +} + +.newCont-ul>div { + font-size: 18px; + margin-bottom: 10px +} diff --git a/resources/views/index/index.blade.php b/resources/views/index/index.blade.php index 4005fe4..df2633c 100644 --- a/resources/views/index/index.blade.php +++ b/resources/views/index/index.blade.php @@ -84,19 +84,40 @@ @endif - @if (getArtilesByCates(10)->isNotEmpty()) - - @endif +
+ @if (getArtilesByCates(14)->isNotEmpty()) +
+
{{ getOneCategory(14,'title') }}
+ +
+ @endif + @if (getArtilesByCates(11)->isNotEmpty()) +
+
{{ getOneCategory(11,'title') }}
+ +
+ @endif +