如何在IONIC 2中设置100%宽度的离子选择组件
问题描述:
我想设置100%宽度的离子选择。
I would like to set my ion-select with 100% of width.
我尝试过这样的css类:
I have tried with css class like this:
.mySelect { width: 100% !important; }
但它不起作用。
答
我做到了。
对于想要解决方案的人,这里是代码:
For someone who wants the solution, here is the code:
.myCustomSelect{
max-width: 100% !important;
}
您必须覆盖'max-width'css属性。
You must have to override the 'max-width' css property.