dev_course
SylorHuang 6 years ago
parent edf8335349
commit a1369a1e0c

@ -2,8 +2,8 @@
wb = xlsx_package.workbook wb = xlsx_package.workbook
wb.use_autowidth = false wb.use_autowidth = false
wb.styles do |s| wb.styles do |s|
sz_all = s.add_style :border => { :style => :thin, :color =>"000000" },:alignment => {:horizontal => :center} sz_all = s.add_style :border => { :style => :thin, :color =>"000000" },:alignment => {wrap_text: true,:horizontal => :center}
blue_cell = s.add_style :bg_color => "FAEBDC", :sz => 10,:height => 20,:b => true, :border => { :style => :thin, :color =>"000000" },:alignment => {:horizontal => :center} blue_cell = s.add_style :bg_color => "FAEBDC", :sz => 10,:height => 20,:b => true, :border => { :style => :thin, :color =>"000000" },:alignment => {wrap_text: true,:horizontal => :center}
wb.add_worksheet(:name => "学生成绩") do |sheet| wb.add_worksheet(:name => "学生成绩") do |sheet|
sheet.sheet_view.show_grid_lines = false sheet.sheet_view.show_grid_lines = false
sheet.add_row table_columns, :style => blue_cell sheet.add_row table_columns, :style => blue_cell

Loading…
Cancel
Save