From 74fbfc6e1ef54223d086900113a8e3d7fc6a3227 Mon Sep 17 00:00:00 2001 From: AviderMin Date: Fri, 1 Nov 2024 10:00:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=9B=BE=E7=89=87=E7=BC=A9?= =?UTF-8?q?=E6=94=BE=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebNews/css/foucsreport.css | 4 ++++ WebNews/css/index.css | 3 ++- WebNews/index.html | 8 ++++---- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/WebNews/css/foucsreport.css b/WebNews/css/foucsreport.css index eb16293..bd4cd01 100644 --- a/WebNews/css/foucsreport.css +++ b/WebNews/css/foucsreport.css @@ -38,6 +38,10 @@ width: 100%; height:210px; overflow: hidden; + transition: 0.8s; +} +.boxcover img:hover{ + transform: scale(1.1); } .boxinfo{ background-color: #ebebeb; diff --git a/WebNews/css/index.css b/WebNews/css/index.css index 2c34266..db1ef5c 100644 --- a/WebNews/css/index.css +++ b/WebNews/css/index.css @@ -10,7 +10,8 @@ margin-bottom: 30px; } .banner img{ - justify-content: baseline; + width: 100%; + height: 400px; } .newszy{ background-color: skyblue; diff --git a/WebNews/index.html b/WebNews/index.html index c082cd7..7b9a638 100644 --- a/WebNews/index.html +++ b/WebNews/index.html @@ -47,10 +47,10 @@ let Prostick; const imgs = document.querySelector('.banner img') let Picsrc = [ - { src: '../image/1rd.png' }, - { src: '../image/2rd.jpg' }, - { src: '../image/3rd.jpg' }, - { src: '../image/4rd.jpg' } + { src: 'pics/43401.png' }, + { src: 'pics/43402.png' }, + { src: 'pics/47202.jpg' }, + { src: 'pics/47204.jpg' } ] let i = 0 setInterval(function Imgs() {