gpt4 book ai didi

Jquery draggable 没有到达容器的边缘

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

我对我的代码非常满意 JSfiddle ,但出于某种原因我无法理解,三 Angular 形不会到达容器的顶部或右边缘。如果有人可以看一下并解释原因,我将不胜感激。

#sandpit{
/* display: inline-block; */
position: relative;
margin:20px auto;
width: 600px;
height: 400px;
border: 4px solid #7b6eb1;
border-radius: 5px;
/* background-color: #FFC469; */
background-color: #FFFCCF;
padding: 2px;
}

.draggable{
margin: 0;
width:25px;
height:25px;
}

最佳答案

将 newTriangle 的 css 更改为:

.newTriangle{
position:absolute;
right:0;
}

关于Jquery draggable 没有到达容器的边缘,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38689295/

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