簡體   English   中英

Vue JS選擇添加Z-index CSS屬性

[英]Vue js select adding z-index css property

我正在使用https://github.com/sagalbot/vue-select中的 vue js select

我面臨一個問題,其中下拉列表隱藏在某些表單輸入下方。所以我想添加一個z-index但它無法正常工作

       <template>

             <v-select placeholder="Sources....."
                  class="form-group"
                 :on-change="changedAssignment"
                 :value.sync="orderform.assignment_type"
                :options="assignment_types">
             </v-select>

       </template>
       <style scoped="true">

            ul.dropdown-menu{
              z-index: 100;
               position: absolute;
             }


       </style>

但以上仍然沒有解決問題。

我該怎么辦?

不太確定,但我想您需要檢查父元素並更新z-index和位置。

因為.dropdown-menu已經有position: absolute; z-index: 1000; 無需覆蓋。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM