2013-01-09 48 views

回答

0

只要用一點點內聯CSS魔術! Demo

$('p').html('<p style="padding: 10px;">bar</p>'); 
+0

感謝djthoms,我想過這個問題,在我的情況下,這是有道理的 –

0

CSS

#AddToList p { 
margin-left : 20px; 
} 

INLINE

html(<p style="margin-left:20px;">Testing Internals</p>);