How to modify the style of iView in vue,

problem description

I want to change my introduction

the platform version of the problem and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)
refactored css
.selections {

            float:left;
            color:-sharp666;
            width: 80px;
            height: 30px;
            margin-left:10px;
            position: relative;
            select{
                color:-sharp666;
                background:none;
                border: none;
                outline: none;
                width: 80px;
                height: 28px;
                line-height: 28px;
                appearance: none;
                -webkit-appearance: none;
                -moz-appearance: none;
                padding-left: 10px;
            }
        }
        //select
        .selects:after{
            content: "";
            width: 13px;
            height: 12px;
            background: url("http://p6c8y8c2e.bkt.clouddn.com/index/zhongwenyingwen@2x.png");
            background-repeat: no-repeat;
            background-size:100%;
            position: absolute;
            right: 0;
            top: 45%;
            pointer-events: none;
        }

< vue >

                <div class="selects">
                    <Select v-model="languages" class="head-select" @on-change="changelang">
                        <Option @click="changeref()" v-for="item in languageList" :value="item.id" :key="item.id">{{ item.name }}</Option>
                    </Select>
                </div>
                
                

what result do you expect? What is the error message actually seen?

Jul.19,2021

rewrite a class class, write on the tag, cover it not on the line, really can not write a style


you did not overwrite it may be because your class does not really cover the style that tag. I use iview, although we only use one line when we use it, but there are many levels when we look at the real html, please check it. There are also some inline styles that are used directly, so yours does not take effect

Menu