<style type="text/css"> .g_grid tr{ border-left:none; border-right:none; border-top:none; border-bottom:1px solid #cccccc } .g_grid .grid_header{ border-left:none; border-right:none; border-top:none; border-bottom:1px solid #808080 } .row-highlight { background-color:#f7ebac; } .row-even { background-color:#eeeeee; } .row-odd { background-color:#ffffff; } </style>
<script type="text/javascript"> $(function() { $(".g_grid").find("tr:even").addClass("row-even"); $(".g_grid").find("tr:odd").addClass("row-odd"); $(".g_grid").find("tr").bind("click", function () { var ckb = $(this).find("input[type=‘checkbox‘][id*=‘ckbSelect‘]"); if (ckb.is(":checked")) { ckb.attr(‘checked‘, false); $(this).removeClass("row-highlight"); } else { ckb.attr(‘checked‘, true); $(this).addClass("row-highlight"); } }); }); </script>
时间: 2024-11-03 21:26:29