想请教一下,怎么给输入框设定颜色?

![img](

"=600 #

1.内联方式

<input type="text" style="background: red;">
  1. 使用类名的方式
    <style>
    .input-style {
    background: red
    }
    </style>
    <input type="text" class="input-style">