css3 中输入框怎么变成下划线
1 回答
跃然一笑
TA贡献1826条经验 获得超6个赞
1 | <input class= "ipt" type= "text" /> |
.ipt {
border: none 0;
outline: medium;
background: transparent;
-webkit-appearance: none;
-moz-appearance: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-moz-tap-highlight-color: transparent;
border-bottom: 1px solid #ccc;
}
去掉默认样式 添加下边框就是下划线了
- 1 回答
- 0 关注
- 889 浏览
添加回答
举报
0/150
提交
取消