【发布时间】:2019-11-04 19:49:16
【问题描述】:
我想知道如何在不使用 jquery 的情况下更改日历徽标?
我希望它看起来像图片中的那样:
input
{
width: 50%;
padding: 8px;
border-radius: 10px;
margin-bottom: 5%;
border: 1px solid #CCCCCC;
font-size: 13px;
}
.fecha input[type="date"]::-webkit-calendar-picker-indicator
{
color: rgba(0, 0, 0, 0);
opacity: 1;
background-image: url("./../some-folder/some-file.svg");
background-repeat: no-repeat;
background-position: 100% center;
background-size: 20px;
cursor: pointer;
}
<div class="form-row fecha">
<div class="col-12">
<input placeholder="Fecha de Inicio" type="text" onfocus=" (this.type='date')" onblur="(this.type='text')">
</div>
但我不喜欢它的样子,它看起来不像图片。
我正在使用 bootstrap4(没有 Jquery)和 sass
【问题讨论】:
-
哪个图标?我们在您发布的代码示例中看不到该图标。
标签: html css sass bootstrap-4