• 例如,设置名为 的工作表页边距:
    1. f := excelize.NewFile()
    2. const sheet = "Sheet1"
    3. excelize.PageMarginBottom(1.0),
    4. excelize.PageMarginFooter(1.0),
    5. excelize.PageMarginHeader(1.0),
    6. excelize.PageMarginTop(1.0),
    7. ); err != nil {
    8. }