美文网首页
vue中修改第三方组件css

vue中修改第三方组件css

作者: 程序员不务正业 | 来源:发表于2018-11-26 17:05 被阅读18次

    css中不使用scoped进行私有化控制,而是采用每个类用自己的类名(class="aroundPriceInput")称控制

    优点:可随意改变第三方组件中的css而不影响到其他开发者

    css

    <style lang="scss">
    .aroundPriceInput {
        .van-field__control::-webkit-input-placeholder {
            color: rgb(166, 166, 166);
        }
        .van-field__control {
            margin-left: 60px;
        }
    }
    

    template

    
    <template>
        <div class="aroundPriceInput">
        <nav-bar title="周边矿源价格录入"></nav-bar>
    </template>
    
    

    相关文章

      网友评论

          本文标题:vue中修改第三方组件css

          本文链接:https://www.haomeiwen.com/subject/fbnbqqtx.html