1. 程式人生 > >BootStrapTable.JS 單元格不換行的實現

BootStrapTable.JS 單元格不換行的實現

欄位過長容易導致 BootStrapTable.JS 實現的 Table 文字自動換行。

The width of column. If not defined, the width will auto expand to fit its contents. Also you can add '%' to your number and the bootstrapTable will use the percentage unit, otherwise, you can add or no the 'px' to your nu

通過 width 【data-width 】 屬性實現行寬的自動擴充套件,此處擴充套件行寬不一定實現指定寬度,【Number {Pixels or Percentage}】。

但均寬都實現了不換行自適應。

程式碼示例

{
    field: 'memberName',
    title: '會員',
    align: 'center',
    width:200
},