我需要从输入中删除x标记,我使用boostrap 4
这是代码
<div class="form-group">
<center>Ingresa tu fecha de nacimiento</center>
<br>
<input type="date" class="form-control" name="bday" placeholder="Ingresa tu fecha de nacimiento" value="{{bday}}" style="text-align: center">
</div>
我希望删除x和箭头
答案 0 :(得分:0)
您可以在此处使用psuedo类
在CSS中输入以下代码
input[type=date]::-webkit-inner-spin-button {
-webkit-appearance: none;
display: none;
}
然后对于输入标签,您需要像这样添加required
<input type='date' required>