代码之家  ›  专栏  ›  技术社区  ›  Hello Folks

jQuery可调整大小的插件游标损坏

  •  0
  • Hello Folks  · 技术社区  · 7 年前

    如果您在页面上使用自定义光标, resizable() https://jqueryui.com/resizable/ 但并没有解释为什么要禁用插件的调整大小游标以始终保持页面的自定义游标。有没有一种黑客的方式来实现这一点?

    $( "#resizable" ).resizable(
    {
        //hack
    });
    
    1 回复  |  直到 7 年前
        1
  •  0
  •   Subhrajyoti Das    7 年前

    试试这个:

    $( "#resizable" ).resizable({
        resize: function( event, ui ) {
        $("#resizable").css('cursor','pointer');
        //more css styles here
        },
        containment: "#container"
    });