http://topic.csdn.net/u/20100423/17/05ca6d71-fce4-46c8-a8a8-094e7e117288.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=gbk"/> <link rel="stylesheet" href="style.css" mce_href="style.css" type="text/css" /> <mce:style type="text/css" ><!-- .nodisplay { display: none; } label { float: left; font: normal 12px Arial; width: 80px; } #s { width: 300px; } #results { position: absolute; top: 0; left: 0; width: 300px; } #results ul { border: 1px solid #bfbfbf; margin: 0; padding: 0; list-style: none; width: 100%; } #results ul li { } #results ul li a { display: block; color: #444; background: #fff; font: normal 12px arial; text-decoration: none; padding: 1px 4px 2px 6px; } * html #results ul li a { width: 100%; } #results ul li a strong { color: red; } #results ul li a.hover { background: #0056f4; color: #fff; } #results ul li a.hover strong { color: #fff; } --></mce:style><style type="text/css" mce_bogus="1">.nodisplay { display: none; } label { float: left; font: normal 12px Arial; width: 80px; } #s { width: 300px; } #results { position: absolute; top: 0; left: 0; width: 300px; } #results ul { border: 1px solid #bfbfbf; margin: 0; padding: 0; list-style: none; width: 100%; } #results ul li { } #results ul li a { display: block; color: #444; background: #fff; font: normal 12px arial; text-decoration: none; padding: 1px 4px 2px 6px; } * html #results ul li a { width: 100%; } #results ul li a strong { color: red; } #results ul li a.hover { background: #0056f4; color: #fff; } #results ul li a.hover strong { color: #fff; } </style> <mce:script type="text/javascript"><!-- /*********************************************** * Global variables * 在原有基础上增加传递object对象, *修改(suggest(keywords,key,object))方法 *修改 (navigate(key,object))方法 *修改tabfix(keywords, key,object)方法 *修改 populate(a,object)方法 ***********************************************/ var maxResults = 10; // max # of results to display控制最大显示数 var ignoreKeys = ""; /***********************