table.rightlist td
{
text-align:right;
}
table.rightlist th
{
text-align:right;
}
以上代码有效,但当我尝试制作时
table.rightlist td,th
{
text-align:right;
}
th,td不起作用,它只对齐td,但不对齐
答案 0 :(得分:2)
您需要在逗号分隔时完全指定每个选择器,
table.rightlist td,
table.rightlist th
{
text-align:right;
}