输入日期 - 根据子值的各种颜色输入

发布于 2025-02-02 18:36:19 字数 694 浏览 3 评论 0原文

我注意到日期输入与其他输入不同。 我想知道在日期输入内是否有可能具有不同的颜色。

为了说明,当没有写任何东西时,我希望这是:

并在键入日期时拥有此内容:

“在此处输入图像描述”

我正在与Angular开发,我没有做过htmlelement,但是我可以需要。

这是我的代码: https://stackblitz.com/edit/edit/angular-scss-scss-demo-pusdk7

有可能得到这样的东西吗?

I notice that the date input works differently from the other inputs.
I would like to know if it is possible to have different colors inside the date input.

To illustrate, I would like that when nothing is written inside:
enter image description here

And have this when we are typing the date:

enter image description here

I'm developing with Angular, I have not done HTMLElement, but I can in need.

Here is my code:
https://stackblitz.com/edit/angular-scss-demo-pusdk7

Is it possible to get something like that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

骑趴 2025-02-09 18:36:19

你能尝试一下:

 <input type="date"
    name="Birth date"
    [formControlName]="BIRTH_DATE"
  />

Can you please try this:

 <input type="date"
    name="Birth date"
    [formControlName]="BIRTH_DATE"
  />
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文