Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/76.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Nest sass财产_Sass - Fatal编程技术网

Nest sass财产

Nest sass财产,sass,Sass,我试图使用一个嵌套另一个元素的元素,因此我不能重复相同的类或dom元素,但我被困在这里 tr{ td, th{ padding: 1.75rem; } td{ font-family: $font-avenir-book; &:first-child { font-size: rem(14px); } button, svg{ font-

我试图使用一个嵌套另一个元素的元素,因此我不能重复相同的类或dom元素,但我被困在这里

tr{
    td, th{
        padding: 1.75rem;
    }
    td{
        font-family: $font-avenir-book;
        &:first-child {
            font-size: rem(14px);
        }
        button, svg{
            font-size: rem(14px);
        }
    }
}

我重复td两次

你真的没有选择,只能在这里重复选择器。