How to use .animate() to override jqm listview theme styling
问题 I have a jqm listview. When a user clicks one of the li in the listview I want to animate the li so that it's background color slowly changes to red. I can't seem to make this work, although I can use .addClass(".red") to instantly turn the li's background-color to red. This approach could work, but I'd want to establish a slower duration for the addClass(), and that doesn't work either. Check out this fiddle for both approaches 回答1: From the jQuery docs: All animated properties should be