css3 中輸入框怎么變成下劃線
css3 中輸入框怎么變成下劃線?
寶慕林4294392
2018-10-28 10:06:34
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;
}
去掉默認樣式 添加下邊框就是下劃線了
舉報