这可能不是问这个问题的最佳地方,我试图获得高度为 550 像素的全宽视差....我的问题是图像的尺寸应该是多少?下面是我的 CSS 代码
element.style {
background-image: url(home-1-1.jpg);
min-height: 550px;
height: 550px;
position: relative;
left: 15px;
box-sizing: border-box;
width: 1472px;
}
.eltdf-parallax-row-holder {
position: static;
padding: 0;
background-attachment: fixed;
background-color: transparent;
background-position: center 0;
background-repeat: no-repeat;
overflow: hidden;
-webkit-transform: translateZ(0);
-moz-transform: translateZ(0);
transform: translateZ(0);
-moz-transform: none;
}
home-1-1.jpg 的大小是 2000x542,当应用于视差时,它看起来超级放大了。我该怎么做才能让它看起来更好?