用法:
iframeFix
默認:
false
防止 iframe 在拖動過程中捕獲 mousemove 事件。與
支持多種類型: cursorAt
選項結合使用,或者在鼠標光標可能不在幫助器上方的任何情況下很有用。-
Boolean: 當設置為
true
, 透明覆蓋將放置在頁麵上的所有 iframe 上。 - Selector:任何匹配選擇器的 iframe 都將被透明覆蓋覆蓋。
代碼示例:
使用指定的iframeFix
選項初始化可拖動對象:
$( ".selector" ).draggable({
iframeFix: true
});
初始化後獲取或設置iframeFix
選項:
// Getter
var iframeFix = $( ".selector" ).draggable( "option", "iframeFix" );
// Setter
$( ".selector" ).draggable( "option", "iframeFix", true );
相關用法
- JQuery UI Draggable instance用法及代碼示例
- JQuery UI Draggable snapMode用法及代碼示例
- JQuery UI Draggable snap用法及代碼示例
- JQuery UI Draggable start( event, ui )用法及代碼示例
- JQuery UI Draggable cursorAt用法及代碼示例
- JQuery UI Draggable containment用法及代碼示例
- JQuery UI Draggable snapTolerance用法及代碼示例
- JQuery UI Draggable option用法及代碼示例
- JQuery UI Draggable disabled用法及代碼示例
- JQuery UI Draggable stop( event, ui )用法及代碼示例
- JQuery UI Draggable revertDuration用法及代碼示例
- JQuery UI Draggable enable用法及代碼示例
- JQuery UI Draggable cursor用法及代碼示例
- JQuery UI Draggable drag( event, ui )用法及代碼示例
- JQuery UI Draggable scrollSensitivity用法及代碼示例
- JQuery UI Draggable axis用法及代碼示例
- JQuery UI Draggable scrollSpeed用法及代碼示例
- JQuery UI Draggable appendTo用法及代碼示例
- JQuery UI Draggable zIndex用法及代碼示例
- JQuery UI Draggable destroy用法及代碼示例
- JQuery UI Draggable scroll用法及代碼示例
- JQuery UI Draggable addClasses用法及代碼示例
- JQuery UI Draggable connectToSortable用法及代碼示例
- JQuery UI Draggable classes用法及代碼示例
- JQuery UI Draggable stack用法及代碼示例
注:本文由純淨天空篩選整理自jqueryui.com大神的英文原創作品 Draggable iframeFix。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。