如何在ng2智能表中将文本对齐?
发布于 2018-12-26 11:11:05
还有一种方法是只使用css。
若要将所有列移到右侧:
:host /deep/ ng2-smart-table tbody > tr > td{ text-align: right; }
向右移动所有标题:
:host /deep/ ng2-smart-table thead th{ text-align: center; }
若要向右移动所有输入筛选器,请执行以下操作:
:host /deep/ ng2-smart-table thead input-filter input{ text-align: center; }
等。
https://stackoverflow.com/questions/49781001
复制相似问题