Css 谷歌自动完成是浮动与滚动条

Css 谷歌自动完成是浮动与滚动条,css,Css,我有一个输入标签,我在下面的代码中提到了谷歌自动完成指令。因此,当我开始搜索任何位置时,Google autocomplete显示为下拉菜单(参见屏幕截图)。问题是,当我搜索某个位置时,Google autocomplete根据搜索位置出现,同时我开始滚动页面,因此Google autocomplete也随着滚动条的移动而在屏幕上浮动(请参阅屏幕截图)。我应该如何粘贴带有输入标签的自动完成,这样它(谷歌自动完成)就不会在滚动条移动的页面中浮动 .pac-container { backg

我有一个输入标签,我在下面的代码中提到了谷歌自动完成指令。因此,当我开始搜索任何位置时,Google autocomplete显示为下拉菜单(参见屏幕截图)。问题是,当我搜索某个位置时,Google autocomplete根据搜索位置出现,同时我开始滚动页面,因此Google autocomplete也随着滚动条的移动而在屏幕上浮动(请参阅屏幕截图)。我应该如何粘贴带有输入标签的自动完成,这样它(谷歌自动完成)就不会在滚动条移动的页面中浮动

 .pac-container {

  background-color: #fff;

  position: absolute ;

  z-index: 1000;
  border-radius: 2px;
  border-top: 1px solid #d9d9d9;
  font-family: Arial, sans-serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  overflow: hidden
 }

.pac-container:after {

  content: "";
  padding: 1px 1px 1px 0;
  height: 16px;
  text-align: right;
  display: block;
  background-image: url(//maps.gstatic.com/mapfiles/api-3/images/powered-by-google-on-white2.png);
  background-position: right;
  background-repeat: no-repeat;
  background-size: 104px 16px
  }

//下面是带有google autocomplete指令的输入标记代码

  <div class="white-pannel col-md-5 businessNameCSS">
  <h4 class="pannel-title" ng-repeat="header in vm.businessName" ng-if="header.controlName == 'Header'">
    Business Name
  </h4>

  <div class="form-group"
        ng-class="{ 'has-error':  businessDetailsForm.submitted &&
                                      businessDetailsForm.businessName.$touched &&
                                      businessDetailsForm.businessName.$invalid }"
        ng-repeat="header in vm.businessName"
        ng-if="header.controlName == 'Text_Box'">

    <input type="text"
          id="businessName_ID"
          name="businessName"
          class="form-control"
          placeholder="{{header.additionalInfo}}"
          systemrefid="{{header.systemRefId}}"
          autocomplete="on|off"
          ng-disabled="vm.disableCompletePage"
          data-uuid="{{header.uuid}}"
          ng-model="vm.businessDetailsForm.uuid[header.uuid]"

          required
          g-places-autocomplete options="vm.autocompleteOptions">


  </div>
</div>

企业名称

请提供一个。您的问题不太清楚,无法理解。不确定
.pac container
试图选择什么,您显示的HTML中没有此类元素;但是–由于它是绝对定位的,可能您只需要指定视口以外的参考点。对于.pac容器plz,请参考以下内容: