开发者

Jquery Ui resizeable and draggable event

开发者 https://www.devze.com 2023-04-12 04:05 出处:网络
i disabled the draggable and resizable events on a box but once you use the disabled true attr it does disable the draggable and resizeable events but it reduces the opacity of the box as if it had an

i disabled the draggable and resizable events on a box but once you use the disabled true attr it does disable the draggable and resizeable events but it reduces the opacity of the box as if it had an overlay.Does anyone know why that is?

$('#box').resizable({disabled:true});
 $('#box').draggable({disabled:true});

box css:

#box{ 
      position:absolute; 
      top:40px; 
      left:600px; 
      width: 100px; 
      开发者_运维百科height: 100px; 
      border:1px solid #000; 
      background-color: #fff; 
   }

Many Thanks


The destroy function worked

$('#box').draggable( "destroy" );
$('#box').resizable( "destroy" );
0

精彩评论

暂无评论...
验证码 换一张
取 消