2013-03-28 147 views

回答

1

串連成字符串,像這樣:

var image_path = "http://siteurl.com/inc/" 

element.css("background" , "url(" + image_path + "image/bg.png) no-repeat scroll 0 0"); 
+0

你能不能請您完整的代碼?謝謝 – 2013-03-28 01:36:05