[英]Change the position of the sort button in a grid in Tapestry 5
How do I change the position of the sort button in header of the grid in Tapestry 5?如何更改 Tapestry 5 中网格 header 中排序按钮的 position?
I have column names of different lengths and I break lines on spaces, so the button, which is appended to the end of the column names, always ends up in different height.我有不同长度的列名,并且我在空格上换行,所以附加到列名末尾的按钮总是以不同的高度结束。 And that is very ugly:(那是非常丑陋的:(
The default position is defined in default.css:默认position定义在default.css中:
img.t-sort-icon {
margin-left: 4px;
}
You can easily change it by providing a more specific CSS rule, eg您可以通过提供更具体的 CSS 规则轻松更改它,例如
th img.t-sort-icon {
//your style here
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.