2009-10-23 61 views

回答

3
// set the background of all td tags 
$('td').css('backgroundImage', 'url('+url+')'); 

// set the content of a particular tag 
$('td#someID').html(yourHtml); 

// set the background and content of a specific tag 
$('td#someID').html(yourHtml).css('backgroundImage', 'url('+url+')'); 

所有這一切都在細節在jQuery的網站記載:http://docs.jquery.com/

+0

謝謝,我顯然不夠努力。 – Stanni 2009-10-23 20:06:49