|
@@ -253,7 +253,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
|
// 创建图片容器
|
|
// 创建图片容器
|
|
const imagesContainer = document.createElement('div')
|
|
const imagesContainer = document.createElement('div')
|
|
imagesContainer.style = `
|
|
imagesContainer.style = `
|
|
- width: ${images.length * width + 10}px;
|
|
|
|
|
|
+ width: ${images.length * width}px;
|
|
height: ${height}px;
|
|
height: ${height}px;
|
|
display: flex;
|
|
display: flex;
|
|
transition: transform 0.5s ease;
|
|
transition: transform 0.5s ease;
|
|
@@ -275,6 +275,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
|
img.alt = `Image ${index + 1}`
|
|
img.alt = `Image ${index + 1}`
|
|
img.style = `
|
|
img.style = `
|
|
flex: 1;
|
|
flex: 1;
|
|
|
|
+ width: ${width}px;
|
|
height: 100%;
|
|
height: 100%;
|
|
`
|
|
`
|
|
|
|
|