If you have the ability to change the output of the shopping cart, you could add a class to the
tag, e.g.
,
, etc.
If you can't change your back-end, then it's a choice of front-end tech. The most cross-browser method is to use jQuery to apply the row classes. The other alternative, CSS3, isn't supported by any current IE; given that this is a shopping cart, you're probably interested in the widest level of browser support.