增加图片缩放效果

main
AviderMin 3 weeks ago
parent a4f9b12da5
commit 74fbfc6e1e

@ -38,6 +38,10 @@
width: 100%; width: 100%;
height:210px; height:210px;
overflow: hidden; overflow: hidden;
transition: 0.8s;
}
.boxcover img:hover{
transform: scale(1.1);
} }
.boxinfo{ .boxinfo{
background-color: #ebebeb; background-color: #ebebeb;

@ -10,7 +10,8 @@
margin-bottom: 30px; margin-bottom: 30px;
} }
.banner img{ .banner img{
justify-content: baseline; width: 100%;
height: 400px;
} }
.newszy{ .newszy{
background-color: skyblue; background-color: skyblue;

@ -47,10 +47,10 @@
let Prostick; let Prostick;
const imgs = document.querySelector('.banner img') const imgs = document.querySelector('.banner img')
let Picsrc = [ let Picsrc = [
{ src: '../image/1rd.png' }, { src: 'pics/43401.png' },
{ src: '../image/2rd.jpg' }, { src: 'pics/43402.png' },
{ src: '../image/3rd.jpg' }, { src: 'pics/47202.jpg' },
{ src: '../image/4rd.jpg' } { src: 'pics/47204.jpg' }
] ]
let i = 0 let i = 0
setInterval(function Imgs() { setInterval(function Imgs() {

Loading…
Cancel
Save