el-input背景色修改

劃重點(理解看悟性)

<template>
    <el-input
        class="readonly"
        v-model="log"
        :rows="15"
        type="textarea"
        readonly=true
    />
</template>

<style scoped lang="scss">
    ::v-deep .readonly .el-textarea__inner {
        background-color: #FAFAFA;
    }
</style>

鳴謝

https://blog.csdn.net/Zhouzsn/article/details/112858376

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章