实现百度搜索栏自动提示功能
<script type="text/javascript" src="../lib/jquery-1.7.1.min.js"></script> <link rel="stylesheet" type="text/css" href="../src/jquery.autocomplete.css"></link> <script type="text/javascript" src="../src/jquery.autocomplete.min.js"></script> <script src="../test/test.js"></script> <style type="text/css"> body { margin: 0px; background: #f4f4f4; font-family: Helvetica Neue, Helvetica, Arial; } </style>
<script type="text/javascript"> $(document).ready(function(){ $('#down').AutoComplete({ 'data': ['One', 'Two', 'Three', 'Four', 'Five', 'Six', 'Seven', 'Eight', 'Nine', 'Ten', 'Eleven', 'Twelve'], 'itemHeight': 20, 'width': 280 }).AutoComplete('show'); }); </script>
<body>里面
<div style="width:1000px;margin:auto;"> <div style="display:table-cell;"> <div style="height:503px;width:330px;"> <input type="text" id="down" value="e"></input><span style="font-weight:bold;font-size:13px;">补全列表在下方</span> </div> </div> </div>
相关推荐
geminihr 2015-03-19
rojyang 2020-05-20
ELEMENTS爱乐小超 2020-05-07
baynkbtg 2019-11-02
ksjlhy 2019-10-28
chang00 2015-06-17
LinSeeker 2019-09-07
nextwhy 2012-09-09
tongjianru 2011-05-18
Jarvan 2016-09-25
fadacai0 2016-04-18
deusrwvf 2017-06-21
AIOps智能运维 2015-05-25
magvwiz 2013-10-18
AIOps智能运维 2010-08-17
linqiang 2010-02-04
XSxing 2019-06-30