這是我的HTML代碼,但不知何故文本包裝在此選擇組件中不起作用。有人有想法嗎?離子2文本不包裹在選擇組件
<ion-list>
<h5 color="primary">
Choose:
</h5>
<ion-item text-wrap>
<ion-select text-wrap class="selectWidth" okText="Ok" cancelText="Cancel" [selectOptions]="selectOptions" [(ngModel)]="Decision">
<ion-option text-wrap selected="true" color="primary" value="vone" text-wrap>first first first first first</ion-option>
<ion-option text-wrap color="primary" value="vtwo">second second second second second second second</ion-option>
<ion-option text-wrap color="primary" value="vthree">third third third third third</ion-option>
</ion-select>
</ion-item>
</ion-list>
你試過設置'白色空間:正常;'在'selectWidth'的CSS類? –
是的,即使有!重要的標籤... –
你可以發佈如何讓這個工作的完整代碼? selectWidth類中的內容是什麼? – user3561494