http://docs.sencha.com/extjs/4.0.7/#!/api/Ext.grid.column.Action
使用extjs动作列我可以水平居中于动作列的图标,但是我无法垂直对齐图标,这会导致奇怪的布局。
Sub Compile_data_from_worksheets()
Dim i As Integer ' declare i as integer, this will count the number of Manufacturers
Dim y As Long ' declare y as long, this will capture the number of rows in a worksheet
Dim x As String ' declare x as string, this will capture the name of each Manufacturer
Application.StatusBar = "running macro" ' places message on the statusbar while macro runs
ThisWorkbook.Activate
Application.ScreenUpdating = False 'stop the screen updating as the macro runs
Application.CutCopyMode = False 'clears the clipboard
For i = 2000 To 2002 ' for each of the years in turn
Sheets(i).Select ' activate worksheet 2000
Range("A17").Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.Copy
Worksheets("Combined_data").Activate
y = ActiveSheet.UsedRange.Rows.Count 'count how many rows of worksheet "AllData_Raw" have been used so far.
Cells(y + 1, 1).Select 'use the Cells command to select data and then paste selection
ActiveSheet.Paste
Next i ' next year...
End Sub
}
有没有人有关于如何使用操作列组件垂直对齐的解决方案?
答案 0 :(得分:1)
最好的方法是将vertical-align: middle;
添加到CSS中,如下所示:
.x-grid-cell.action-column {
vertical-align: middle;
}