移动中的p列数据字段对齐

时间:2019-01-25 16:12:30

标签: html css angular mobile responsive

当转换为移动设备时,我试图将数据字段在p列的左侧对齐。

我尝试通过更改样式列的宽度百分比,但无法弄清楚。这是我的代码。

 <p-dataTable>  

 <p-column [style]="{'width':'14%'}" field="manufacturer" header="Manufacturer" [sortable]="true"  [filter]="true" filterMatchMode="startsWith"></p-column> 

 </p-dataTable>

0 个答案:

没有答案