gpt4 book ai didi

css - 试图让图像填满整个左侧

转载 作者:太空宇宙 更新时间:2023-11-04 08:47:56 25 4
gpt4 key购买 nike

我正在我的 WordPress 网站中开发一个页面,当我将鼠标悬停在右侧的元素标题上时,该页面会显示我工作过的网站。现在它看起来像这样:

enter image description here

如您所见,图像没有填满整个左侧,这是我的问题。我如何让它在 css 中填充整个左侧?

这是我的 _acf-work-portfolio.scss 文件:

/*---------------------------------------------------------------------------*/
/* Work Portfolio
/*---------------------------------------------------------------------------*/
.work-entry {
display: block;

.work-left {
position: absolute;
height: 50%;
width: 50%;
background-color: green;
color: white;
}
.work-right {
overflow-y: scroll;
display: block;
width: 50%;
padding: 100px 25px;
float: right;
background-color: #f4f4f4;

li {
margin-top: 50px;
margin-bottom: 50px;
}
}

.item {
display: none;
position: relative;
&.active {
display: block;
}
}
}

我应该可以调整元素的类别,但我无法解决它。

最佳答案

在 .item 元素中将高度和宽度设置为 100%

.item { 高度:100%; 宽度:100%;

关于css - 试图让图像填满整个左侧,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43642594/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com