0

这是我的网站,搜索http://clients.onebricktech.com/whenisit/search.php?keywords=1Trades1%20Plumbing 如果我搜索任何内容,搜索建议关键字会向下推。

4

4 回答 4

0

您应该position: absolute在包含搜索词文本框的表中使用。然后您将需要调整表格边距左侧属性。

于 2013-01-31T19:24:07.300 回答
0

position: absolute尽管我实际上喜欢该功能,因为它是 TBH ,但您需要将建议框从流程中删除。

于 2013-01-31T19:24:45.973 回答
0

添加:

position: absolute

在 ajaxresults 标签中,这应该有效

于 2013-01-31T19:24:56.100 回答
0

像这样修改你的代码

<div style="float:left; position: relative">
    <form id="cityForm" method="post">
        <input type="hidden" value="true" name="cityChanged">
        <input type="hidden" value="" name="keywords">
        <input type="text" data-default="146" onblur="this.style.color='#318d00'" value="Trivandrum, 13" style="width: 150px; color: rgb(49, 141, 0); display: inline-block;" onkeyup="city_completer()" onclick="javacript:this.select();this.style.color='#000'" class="city_state" id="city_stater" name="city_state" autocomplete="off">
    </form>
    <div style="position: absolute; margin-left: 35px; width: 120px; border: 1px solid rgb(153, 153, 153); display: block;" id="ajaxcity"><div><div class="citySuggest"><a onclick="copyToCityBox('Caledon Village, ON');document.getElementById('citySelect').submit()" href="javascript:void()">Caledon Village, ON</a></div><div class="citySuggest"><a onclick="copyToCityBox('Caledon, ON');document.getElementById('citySelect').submit()" href="javascript:void()">Caledon, ON</a></div><div class="citySuggest"><a onclick="copyToCityBox('Courtice, ON');document.getElementById('citySelect').submit()" href="javascript:void()">Courtice, ON</a></div></div></div>
</div>
于 2013-01-31T19:38:21.627 回答