实现html表单下划线可输入/css实现input只显示下划线

只需要设置input的边框属性,设置底边框颜色为黑色即可

input{
    border-bottom: 1px solid #000;
    border-top: 0px;
    border-left: 0px;
    border-right: 0px;
}

效果图

在这里插入图片描述
图中显示的下划线就是可以输入的input。

猜你喜欢

转载自blog.csdn.net/weixin_36270908/article/details/88897336