Iview Input background:red does not work

requirement: the white background on the Input component of the iview library needs to be changed to red, so why does it not take effect to modify the background background directly?

< Input class= "bgStyle" / >

< style >

.bgStyle{
    background:red;
}

< / style >

Aug.04,2021

.bgStyle .ivu-input{
    background:red;
}

try this setting


there are several scenarios that do not take effect. When the password box is automatically filled in by the browser (and appears yellow), it is overwritten by other more weighted styles

.
Menu