gpt4 book ai didi

html - 将 div 粘贴到页面左侧

转载 作者:太空宇宙 更新时间:2023-11-03 23:06:46 27 4
gpt4 key购买 nike

我有一个容器,里面有一个 div 我想贴在屏幕的左上角,但我总是有空隙

我如何获得这样的东西?提前致谢

https://onedrive.live.com/redir?resid=22090721B1B171B7!12771&authkey=!AEDRyX0320pmcLk&v=3&ithint=photo%2cjpg

最佳答案

我希望对这个例子有所帮助https://jsfiddle.net/step/L9rn4fkg/你玩 margin-top

.sticky {
width:100px;
height:100px;
float: left;
position: fixed;
background-color: #30cff0;
margin-top:50px;
z-index:1000;
}

关于html - 将 div 粘贴到页面左侧,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34445000/

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