Z-index in jQuery dialog. Autosuggest list not displayed properly

前端 未结 4 2001
囚心锁ツ
囚心锁ツ 2021-01-15 03:08

I have a problem displaying the autosuggest box inside a jQuery dialog. The auto suggest list is displayed under the dialog no matter what. I have tried setting up the z-ind

4条回答
  •  [愿得一人]
    2021-01-15 03:29

    It should work as I tested that in jsfiddle link you provided:

    div.as-results{position:relative;z-index:1;}
    div.as-results ul.as-list {
        position: fixed;
        list-style-type: none;
        margin: 2px 0 0 0;
        padding: 0;
        font-size: 14px;
        color: #000;
        font-family: "Lucida Grande", arial, sans-serif;
        background-color: #fff;
        background-color: rgba(255,255,255,0.95);
        box-shadow: 0 2px 12px #222;
        -webkit-box-shadow: 0 2px 12px #222;
        -moz-box-shadow: 0 2px 12px #222;
        border-radius: 5px;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        z-index:6000;
    }
    

提交回复
热议问题