Adsense
Popular Posts
- MySQL workbench -"Could not decrypt password cache"
- peer review (3)
- PHP, dump varailbes in a format way
- "Unusual traffic from your computer network" from blogger
- Install APXS in Redhat Linux
- JavaScript, remove trailing insignificant zeros after toFixed function
- Update member directory
- Set Windows path command line
- JavaScript: add days to current date
- DataTable table order by numeric, not by text
Thursday, July 3, 2014
Change row background color alternatively in CSS or jQuery
To Change row background c0lor alternatively in jQuery:
<script>
$(document).ready(function()
{
$("tr:even").css("background-color", "lightblue");
});
</script>
In CSS
<style type="text/css">
tr:nth-child(2n) { background-color: #FFEBCD; }
</style>
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment