在表单输入下方显示 UL 以进行 ajax 自动建议的建议
我正在寻找一些有关如何将 UL LI 元素放置在表单文本输入字段下方的 CSS/HTML 输入。在 ajax 调用之后,将使用 javascript 动态创建/删除 LI。
<div>
<label for="edit-query">Search: </label>
<input type="text" maxlength="128" name="query" id="edit-query" size="60" value="" class="form-text" />
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
</div>
本质上,我希望这些项目出现在页面其余内容的上方,并直接位于表单输入的下方。 (可能需要使用 z-index 属性)。
I'm looking for some CSS/HTML input on how to position UL LI elements below a form text input field. The LI's would be created/removed dynamically with javascript after an ajax call.
<div>
<label for="edit-query">Search: </label>
<input type="text" maxlength="128" name="query" id="edit-query" size="60" value="" class="form-text" />
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
</div>
Essentially I would like the items to appear above the rest of the page content, and directly below the form input. (probably need to use a z-index property).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在表单输入下方显示 UL 以进行 ajax 自动建议的建议
Suggestions for displaying a UL below a form input for ajax-autosuggestions