If you want to have different background of invoice items rows in PDF/HTML invoices, you can use CSS to achieve that.
- Edit your invoice template in Settings → Billing → Invoice Customization → Invoice template
- Click on HTML button to edit html source of your template
To <table> element holding your invoice items, add id attribute:
At the bottom of your template, add <style> block with css rules providing alternating backgrounds, like so: