如何让Google在模型框中放置

时间:2017-07-16 17:19:16

标签: html css angular angular2-template bootstrap-4

我有谷歌搜索我的模型框。我正在使用角度2。

 <input type="text" type="text" class="form-control" placeholder="Address" [ngClass]="{active:signupSubmitted && !signUpForm.controls['formatted_address'].valid}"
 [formControl]="signUpForm.controls['formatted_address']" [(ngModel)]="data.formatted_address"
       (setAddress)="getAddress($event)" googleplace/>

我也把它保存在我的CSS中。

.pac-container {
   z-index: 1100 !important;
 }

但没有用。任何人都可以帮助我。谢谢。

1 个答案:

答案 0 :(得分:0)

试试这个

.pac-container {
    z-index: 1051 !important;
}
相关问题