gpt4 book ai didi

html - 无论屏幕大小如何,容器周围的图像都会跟随容器

转载 作者:行者123 更新时间:2023-11-28 04:07:17 25 4
gpt4 key购买 nike

这是我的元素的实时链接 - http://sunwaycleanairproject.com/pledge

我在图 block 的 Angular 周围放置了 3 张图片 -

 <div class="back-top-right"></div>
<div class="back-bottom-right"></div>
<div class="back-bottom-left"></div>

.master-container .back-top-right {
position: absolute;
top: 2%;
left: 78%;
background: url(../../images/27.png) center center no-repeat;
width: 248px;
height: 214px;
content: ' ';
}

.master-container .back-bottom-left {
left: -22px;
bottom: 40px;
background: url(../../images/28.png) center center no-repeat;
width: 248px;
height: 253px;
}

.master-container .back-bottom-left {
left: -22px;
bottom: 40px;
background: url(../../images/28.png) center center no-repeat;
width: 248px;
height: 253px;
}

如何改进我的 CSS 以使图像根据容器移动并保持原位?

我正在使用 15 英寸 macbook pro 屏幕,全屏显示效果不错。如果我在不同的屏幕尺寸(尤其是较大的屏幕)上查看此网站,这些图像将无处不在。我希望它们始终留在原地,始终位于网格容器的 Angular 落。

enter image description here

最佳答案

使某些屏幕的大小固定。媒体查询将有所帮助

关于html - 无论屏幕大小如何,容器周围的图像都会跟随容器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42899055/

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