有没有一种方法可以更改输入类型=“文本"?来“约会"仅使用CSS? [英] Is there a way to change input type="text" to "date" using CSS only?

查看:90
本文介绍了有没有一种方法可以更改输入类型=“文本"?来“约会"仅使用CSS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过CSS将输入类型从输入type ="text"替换为input type ="date"的输入.有可能吗? 谢谢

I'd like to replace though CSS the type of an input from input type="text" to input type="date". Does it possible? Thanks

推荐答案

否.

CSS是一种表示语言.它不能用于更改文档的语义和结构.

CSS is a presentation language. It cannot be used to alter the semantics and structure of a document.

最接近的可能是确定文件和日期输入在文档中是否可见.

The closest you could come would be to determine which if a file and date input were visible in the document.

这篇关于有没有一种方法可以更改输入类型=“文本"?来“约会"仅使用CSS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆