var num= parseInt( $(‘#sampleDiv‘).css(‘marginLeft‘) );
jQuery获取css值
原文:http://www.cnblogs.com/cjbk/p/5159495.html