[英]Change the position of text of table body except the action buttons in it?
这是我的表格 UI,我希望其中的文本出现在列的左侧,但“操作”列中的按钮也会生效,我希望只有文本出现在列的右侧
这是表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;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.