Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/299.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 搜索结果打破了引导中的导航栏_Php_Html_Css_Ajax_Twitter Bootstrap - Fatal编程技术网

Php 搜索结果打破了引导中的导航栏

Php 搜索结果打破了引导中的导航栏,php,html,css,ajax,twitter-bootstrap,Php,Html,Css,Ajax,Twitter Bootstrap,我正在尝试使用ajax和php在搜索框中显示结果,一切正常,但在显示结果时出现了问题,它只是破坏了导航栏 这是导航条形码 切换导航 /*代码简化*/ 有人能帮助我如何显示google的结果吗 可能是我错过了一些东西,我还在学习。所以好吧,我努力尝试谷歌,并得到一个答案 #livesearch { position: absolute; width: auto; background: white; border-bottom-left-radi

我正在尝试使用ajax和php在搜索框中显示结果,一切正常,但在显示结果时出现了问题,它只是破坏了导航栏


这是导航条形码


切换导航
    /*代码简化*/
有人能帮助我如何显示google的结果吗


可能是我错过了一些东西,我还在学习。

所以好吧,我努力尝试谷歌,并得到一个答案

#livesearch
{
    position: absolute;
    width: auto; 
    background: white;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    max-height: 200px;
    overflow-y: auto;

    border: 1px solid gray;

    /*This is relative to the navbar now*/
    left: 0;
    right: 0;
    top: 40px;
}
这有助于我解决这个问题

#livesearch
{
    position: absolute;
    width: auto; 
    background: white;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    max-height: 200px;
    overflow-y: auto;

    border: 1px solid gray;

    /*This is relative to the navbar now*/
    left: 0;
    right: 0;
    top: 40px;
}