【saas继承没有作用 _Sass 】 | IT修真院·坑乎
问题已收录 saas继承没有作用
我也踩过这个坑( 1 )
已统计您的踩坑,无需重复点击
回答(1)
Sass
详细描述
截图
代码
编辑于2024-04-26
  • [上海|]JS-
    0

    .box.center-box{

            @extend .box.time;

            display: flex;

    }

    .box{

        padding-top: .29rem;

        background: $blue;


        .logo{

            @include box(3.51rem,2.1rem );

            margin: $text;

            background: url(picture/task-css12.png) no-repeat -4.16rem 0;


            .logo-font{

                position: absolute;

                margin:1.3rem 0 0 .7rem;

                font-size: .48rem;

                /* 字符间距 */

                letter-spacing: .05rem;

                color: $white;

            }

        }

      .introduce{

            width: $width;

            margin: .3rem $text .61rem $text;

            font-size: .33rem;

            color: #FFC865;

        }

    .time{

                width: $width;

                margin: $text;

                font-size:$font;

                color: $white;


        }

    .center-box{

            @extend .time;

            display: flex;


            span.font{

                margin-right: .5rem;

            }

        }


    }

    总感觉你的sacc写的有问题  你已经给p标签命名为time,为什么还要写p.time  写了以后为什么引用的时候少个p 。@extend .time。你试试这样写么么能行吗?


    编辑于2018-10-05