html代码: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Table</title> <link href="../css/table.css" mce_href="css/table.css" rel="stylesheet" type="text/css" /> <mce:script src="../js/jquery-1.3.1.js" mce_src="js/jquery-1.3.1.js" type="text/javascript"><!-- // --></mce:script> <mce:script type="text/javascript"><!-- $(function(){ $("tr:even").addClass("even"); $("tr:odd").addClass("odd"); $("tbody>tr").hover(function(){ $(this).addClass("selected"); }, function(){ $(this).removeClass("selected"); }); $(":input").keyup(function(){ $("tbody tr").hide().filter(":contains('" + ($(this).val()) + "')").show(); });