background-positionの取得

539 ワード

var Point = [];
 
 var p = $("#xx").css("background-position");
 
 //IE   ,IE     background-position,
 
 //    background-position-x background-position-y
 
 if (typeof (p) === "undefined"){
 
    Point[0] = $("#xx").css("background-position-x");
 
     Point[1] = $("#xx").css("background-position-y");
 
 } else{
 
    Point = p.split(" ");
 
 }