在select中将占位符移动到左侧

时间:2017-03-15 06:47:05

标签: angular ionic2

我需要将占位符文本移到左侧,将下拉箭头移动到右侧,我在对象数组中有值。我需要的是我的占位符向左和向右移动

<ion-item>
      <ion-select [(ngModel)]="Country" item-right name="Country" placeholder="Select country" required>
          <ion-optionv value={{item.val}} *ngFor="let item of options" >{{item.name}}</ion-option>
      </ion-select>
</ion-item>
        <button [disabled]=!form.valid ion-button type="submit" value="Submit" block>Submit</button>

enter image description here

1 个答案:

答案 0 :(得分:2)

enter image description here

试试这个!

LD_PRELOAD=/usr/lib/nvidia-367/libnvidia-ml.so nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

如果它不起作用,某些CSS属性必须覆盖它。将这两个属性标记为!important