There isn't really any difference. $.css() is just a shortcut method for accessing the css style attribute of a dom element.
http://api.jquery.com/css/
EDIT: As justin pointed out, there is a difference in that the .attr() method will overwrite any existing style attributes.