Click here to see the problem with image
如何隐藏向上和向下箭头以及占位符文字'(mm / dd / yy)'?
答案 0 :(得分:1)
使用此CSS删除向上和向下箭头。它们显示在Chrome中:
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
从输入中删除placeholder
属性:
<input type="text" name="fname" placeholder="First name">
为:
<input type="text" name="fname">