jQuery 可调整大小的插件光标损坏
jQuery Resizable Plugin Cursor Corruption
如果您在页面上使用自定义光标,resizable()
插件会在获得交互后将其恢复为默认指针。我在 https://jqueryui.com/resizable/ 查看了插件文档,但没有解释禁用插件的调整大小光标以始终保留页面的自定义光标。有什么 hacky 方法可以做到这一点吗?
$( "#resizable" ).resizable(
{
//hack
});
试试这个:
$( "#resizable" ).resizable({
resize: function( event, ui ) {
$("#resizable").css('cursor','pointer');
//more css styles here
},
containment: "#container"
});
如果您在页面上使用自定义光标,resizable()
插件会在获得交互后将其恢复为默认指针。我在 https://jqueryui.com/resizable/ 查看了插件文档,但没有解释禁用插件的调整大小光标以始终保留页面的自定义光标。有什么 hacky 方法可以做到这一点吗?
$( "#resizable" ).resizable(
{
//hack
});
试试这个:
$( "#resizable" ).resizable({
resize: function( event, ui ) {
$("#resizable").css('cursor','pointer');
//more css styles here
},
containment: "#container"
});