jQuery draggable + droppable: how to snap dropped element to dropped-on element

前端 未结 7 1261
无人及你
无人及你 2020-11-30 19:42

I have my screen divided into two DIVs. In the left DIV I have a few 50x50 pixel DIVs, in the right DIV I have an empty g

相关标签:
7条回答
  • 2020-11-30 20:32

    If the divs on the left are actually in the lis on the right (which you can confirm with Firebug), and if the lis are all in a ul (as they should be), try one or both of the following:

    ul#right_div {
      text-align: center;
    }
    
    ul#right_div li {
      text-align: center;
    }
    
    0 讨论(0)
提交回复
热议问题