图像后面显示的白色小空间



所以我在图像后面有一个小空白,我该如何修复?这是我班的代码:

.hero-image2 {
background-image: url("/assets/kava.jpeg");
width:33%;
right:0px;
position: fixed;
min-height: 100%;
background-size: contain;
-webkit-background-size: contain;
-moz-background-size: contain;
-o-background-size: contain;
background-repeat: no-repeat;
bottom:0px;
}

这是左边的另一个类:

.tekst2 {
width: 67%;
position: absolute;
left: 0px;
height: 100%;
font-family: 'Playfair Display', serif;
font-size: 15px;
}

以下是它的样子:在此处输入图像描述

您可以给出负的页边距底部值,例如margin-bottom=-30px;

最新更新