Html 如何更改日期类型占位符文本的不透明度?

Html 如何更改日期类型占位符文本的不透明度?,html,css,Html,Css,我正在使用: <span class="input input--isao"> <input class="input__field input__field--isao" type="date" id="dateofbirth" name="dateofbirth"/> <label class="input__label input__label--isao" for="dateofbirth" data-content="Date of Birth">

我正在使用:

<span class="input input--isao"> <input class="input__field input__field--isao" type="date" id="dateofbirth" name="dateofbirth"/> <label class="input__label input__label--isao" for="dateofbirth" data-content="Date of Birth"> <span class="input__label-content input__label-content--isao">Date of Birth</span> </label> </span>

::-webkit-input-placeholder {
  opacity:  0.4;
}
出生日期
:-webkit输入占位符{
不透明度:0.4;
}

如何使日期的占位符文本的不透明度也为0.4。占位符yyy-mm-dd是自动的,我不输入。请查看图片。

您可以使用查询插件将文本输入屏蔽为日期输入

您至少应该提供用于创建日期元素的HTML代码。它是一个插件吗?在问题中添加了你的代码。如何添加占位符?你在用什么插件?问题是,它是一个实际的占位符属性,还是一个插件,在字段接收焦点之前添加该值,然后将其删除,只是在字段失去焦点且为空时读取它。。。?这将使用一种不同的风格设计方法。你可能会这样做,但这并不能解决眼前的问题。