包括:
1 2 3 | < link href = "css/coveringBad.css" type = "text/css" /> < script src = "js/coveringBad.js" ></ script > |
HTML:
1 2 3 4 | < div class = "covered" > < div class = "handle" ></ div > < div class = "changeable" ></ div > </ div > |
JS:
1 2 3 | $( function () { $( '.covered' ).coveringBad(); }); |
选项:
1 2 3 4 5 | 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 |
增加
1 2 3 4 5 6 7 8 9 10 11 12 | < div class = "covered first" > < div class = "handle" ></ div > < div class = "changeable" ></ div > </ div > < div class = "covered second" > < div class = "handle" ></ div > < div class = "changeable" ></ div > </ div > < div class = "covered third" > < div class = "handle" ></ div > < div class = "changeable" ></ div > </ div > |
1 2 3 4 5 6 7 8 9 10 11 | $( function () { $( '.first' ).coveringBad(); $( '.second' ).coveringBad(); $( '.third' ).coveringBad({ marginY : 20 , marginX : 400 , setX : 400, setY : 235 , direction : "vertical" }); }); |
特别申明:
本站所有资源都是由网友投稿发布,或转载各大下载站,请自行检测软件的完整性!
本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!
如有侵权请联系我们删除下架,联系方式:lei1294551502@163.com