繁体   English   中英

改变表体文字的position 除了里面的动作按钮?

[英]Change the position of text of table body except the action buttons in it?

这是我的表格 UI,我希望其中的文本出现在列的左侧,但“操作”列中的按钮也会生效,我希望只有文本出现在列的右侧

2

这是表D的css。

.table td {
    font-size: 0.813rem;
    font-weight: 400;
    color: #8d97ad;
    vertical-align: middle;
    text-align: left !important;
}

您可以使用:not选择器和:last-child选择器将样式应用于除最后一列之外的所有td元素。

.table td:not(:last-child) {
    text-align: right !important;
}

https://www.w3schools.com/cssref/sel_not.asp

https://www.w3schools.com/cssref/sel_last-child.asp

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM