简体   繁体   English

输入文字的遮罩

[英]Mask for input text

How to make a mask, type time 11:24, that would work in IE7, IE8, IE9 crome. 如何制作口罩,键入时间11:24,这将在IE7,IE8,IE9 crome中起作用。
I use this library here, but it only works in the chrome https://raw.github.com/fabiomcosta/jquery-meiomask/08b92c411a60ace9131de697179fda433178b8d9/jquery.meio.mask.js . 我在这里使用此库,但仅适用于Chrome https://raw.github.com/fabiomcosta/jquery-meiomask/08b92c411a60ace9131de697179fda433178b8d9/jquery.meio.mask.js
Tell the library ready for work in all browsers 告诉库准备在所有浏览器中工作

I am not sure about IE9 but in the ajax control toolkit there's maskedtextbox like the one in visual studio toolbox. 我不确定IE9,但是在ajax控件工具箱中,有一个maskedtextbox,就像Visual Studio工具箱中的一样。 it works in IE 8, firefox and chrome. 它可以在IE 8,Firefox和Chrome中使用。

see demo: http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/MaskedEdit/MaskedEdit.aspx 参见演示: http : //www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/MaskedEdit/MaskedEdit.aspx

http://www.meiocodigo.com/projects/meiomask/ http://www.meiocodigo.com/projects/meiomask/

i think this works fine on all browsers 我认为这适用于所有浏览器

Edit: meioMask compatibility 编辑:meioMask兼容性

meioMask has been tested with jQuery 1.7.2 on all major browsers: meioMask已在所有主要浏览器上使用jQuery 1.7.2进行了测试:

Firefox2, Firefox3, Firefox3.5 (Win, Mac, Linux);
IE6, IE7, IE8 (Win);
Chrome (Win, Mac, Linux);
Safari3.2, Safari4 (Win, Mac, iPhone, yes, it supports iPhone!);
Opera (Win, Mac, Linux).

this note was on their own site 这个笔记在他们自己的网站上

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM