如何为输入框设置颜色

黑阿都

如何为输入框设置颜色?链接也会有帮助,谢谢!


<div class="form-group">
    <label for="Last Name"><b>Last Name</b></label>
    <input type="text" required>   
</div>


骑士D2

给你!

#Last {
background-color: red
/* Set to any color you want :) */
}
#First {
background-color: blue
}
<div class="form-group">
    <label for="Last Name"><b>Last Name</b></label>
    <input type="text" id = "Last" required>   
</div>
<br>
<!-- Added a <br> to make it look better, but it is not necessary -->
<div class="form-group">
    <label for="First Name"><b>First Name</b></label>
    <input type="text" name = "box2" size = 15 maxlength = 30 required id="First">
  
</div>

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章