Fixed positioned search box with Autocomplete suggestions

拈花ヽ惹草 提交于 2019-12-01 06:38:13

Why not make the search results position: fixed as well? As long as you know the height of the textbox, you can position the results list such that it is always just under the textbox element.

position:fixed is not the way to do what you're after.

position:absolute should have solved your issue though which makes me think either their is a browser bug (which browsers have you tested) or something in the plugin or css is overwriting the position:absolute with position:fixed - have you checked FireBug in Firefox to see the actual CSS being applied to the dropdown box?

Those are the only 2 causes I can think of to explain what you're seeing.

position:relative on the container, that contains the results list (which has position:absolute) solves the problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!