我有过
<input required type="text" placeholder="yyyy/mm/dd" id="fecha_form" name="fecha_form">看起来是这样的:

如何将占位符居中到输入的中心?
发布于 2021-08-27 13:57:43
把这个标签放在head标签里面,它会在大多数流行的浏览器中解决你的问题
<style type="text/css">
#fecha_form::-webkit-input-placeholder {
text-align: center;
}
#fecha_form:-moz-placeholder {
text-align: center;
}
#fecha_form::-moz-placeholder {
text-align: center;
}
#fecha_form:-ms-input-placeholder {
text-align: center;
}
</style>https://stackoverflow.com/questions/68953863
复制相似问题