Covering-Bad插件的使用方法如下:

引入js文件

HTML结构

调用方法

$(function() {
    $(".covered").coveringBad();
});
                

可用参数

marginY : 20,   // Handle's distance from top and bottom
marginX : 20,   // Handle's distance from left and right
setX    : 30,   // Defulat location for handle from left
setY    : 150,  // Defulat location for handle from top
direction : "horizontal" // would be horizontal/vertical