From fa6258ea3ec6f97946fbb72a2666c1a24d507757 Mon Sep 17 00:00:00 2001 From: caicai8 <1149225589@qq.com> Date: Sat, 7 Sep 2019 09:39:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E8=B7=B5=E8=AF=BE=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/paths/ShixunPaths.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/react/src/modules/paths/ShixunPaths.css b/public/react/src/modules/paths/ShixunPaths.css index 0aab397e7..5ff18c917 100644 --- a/public/react/src/modules/paths/ShixunPaths.css +++ b/public/react/src/modules/paths/ShixunPaths.css @@ -68,12 +68,16 @@ overflow: hidden; display: block; border-radius: 6px; + position: relative; } .squareCard .squareImg img{ transition: all 1s; -webkit-transition: all 1s; -o-transition: all 1s; width: 100%; + position: absolute; + top: -50%; + margin-top: 67.5px; } .squareCard .squareImg img:hover{ transform: scale(1.05);