亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

xlsx-style包如何設置整行整列的樣式?

xlsx-style包如何設置整行整列的樣式?

POPMUISE 2018-09-24 20:29:04
xlsx-style包的文檔是這樣的:說明1、ws['!cols']: array of column properties objects. Column widths are actually stored in files in a normalized manner, measured in terms of the "Maximum Digit Width" (the largest width of the rendered digits 0-9, in pixels). When parsed, the column objects store the pixel width in the wpx field, character width in the wch field, and the maximum digit width in the MDW field.說明2、ws['!rowBreaks']: array of row break points, e.g. [16,32]ws['!colBreaks']: array of col break points, e.g. [8,16]比如我想設置第二列的寬度為100px,根據說明1的話我是這樣寫的(先設置第一列為一個空對象,然后設置第二列的寬度)ws['!cols'] = ([     {},     {        wpx: 100     } ])ps:我在想有沒有什么辦法可以不用設置第一列為空對象,直接設置第二列的寬度呢?(“說明2”不知道怎么用)同樣設置某一行的高度也有此疑問。
查看完整描述

1 回答

?
慕尼黑8549860

TA貢獻1818條經驗 獲得超11個贊

在用xlsx-style包的時候,貌似沒有ws['!rows']屬性,也就是說不能設置行的高度。。。
看來還是要想辦法獲取xlsx包的專業版了。

查看完整回答
反對 回復 2018-09-24
  • 1 回答
  • 0 關注
  • 5801 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號