从对面的角度调整Div框

发布于 2025-02-05 18:27:58 字数 81 浏览 2 评论 0 原文

•我只想从左而不是右侧调整一个正方形

•这是我使用的代码:

​。

• I just want to resize a square from the left not the right

• Here is the code I used:

My Stackblitz Code

• My desired result:

enter image description here

• Thanks for your help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

少女情怀诗 2025-02-12 18:27:58

在尝试了许多解决方案之后,我建议您使用软件包 nofollow noreferrer“> angular2-draggable 允许用户从各个方面调整大小。

感谢您的回答。

After trying many solutions I recommende to use the package angular2-draggable which allows users to resize from all sides.

Thanks for your answers.

简单爱 2025-02-12 18:27:58

好吧,这样做不是一个好习惯,但是让您的选择器 .draghandle.rb 这样:

.dragHandle.rb {
  width: 15px;
  height: 15px;
  cursor: nwse-resize;
  transform: translate3d(0px, 235px, 235px) !important;
}

Well, it's not a good practice to do this, but make your selector .dragHandle.rb like this:

.dragHandle.rb {
  width: 15px;
  height: 15px;
  cursor: nwse-resize;
  transform: translate3d(0px, 235px, 235px) !important;
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文