react项目中关于css样式-webkit-box-orient: vertical不生效问题

版权声明:转载请注明出处。 https://blog.csdn.net/zeroyulong/article/details/81906077

react项目中关于css样式-webkit-box-orient: vertical

代码中有此样式,项目跑起来后发现此属性丢失

.name{
            font-size: 14px;
            height: 36px;
            line-height: 18px;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical ;
        }

解决方法:在此行代码前加如下注释 /*! autoprefixer: off */

.name{
            font-size: 14px;
            height: 36px;
            line-height: 18px;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            /*! autoprefixer: off */
            -webkit-box-orient: vertical ;
        }

猜你喜欢

转载自blog.csdn.net/zeroyulong/article/details/81906077