* { padding:0; margin:0; } .title { width:270px; height:129px; margin:50px auto; display:block; } .show { width:625px; height:38px; margin:0 auto; position:relative; } #text { width:500px; height:34px; text-indent:10px; float:left; } .but { width:102px; height:38px; background-color:#38f; font-size:16px; color:white; line-height:38px; text-align:center; cursor:pointer; float:left; } .but:hover { background:#0066ff; } .search { width:500px; display:none; border:1px solid #ddd; position:absolute; top:37px; } .search ul li { list-style:none; width:500px; height:30px; text-indent:10px; line-height:30px; } .search ul li a { color:#000; text-decoration:none; display:block; } .search ul li a:hover { background:#ddd; }
拿到百度关键字的数据后,在文本框中输入的字符会出现再搜索信息,点击内容进行搜索