如何通过标签本身将类型从文本更改为密码
<input type='text' name='pass' />
Run Code Online (Sandbox Code Playgroud)
是否可以在输入标记本身内插入JS以将type ='text'更改为type ='password'?
我有一个问题,从谷歌Chrome v 18打印网页字体,但它与IE和Firefox完全正常,我使用CSS文件传递网络字体,其代码如下.
@font-face {
font-family: 'C39P24DmTtNormal';
src: url('WebFonts/v100025_-webfont.eot');
src: url('WebFonts/v100025_-webfont.eot?#iefix') format('embedded-opentype'),
url('WebFonts/v100025_-webfont.woff') format('woff'),
url('WebFonts/v100025_-webfont.ttf') format('truetype'),
url('WebFonts/v100025_-webfont.svg#C39P24DmTtNormal') format('svg');
font-weight: normal;
font-style: normal;
}
Run Code Online (Sandbox Code Playgroud)
问题屏幕截图:

图片描述:
在上面的屏幕截图中,所有用红色标记的是由CSS文件中的Web字体提供的条形码,但是打印时如上所示.
我试图在谷歌上搜索,但这似乎是Chrome的一个可能的错误,他们正试图尽快修复它.
有什么样的解决方法可以帮助我,因为我不希望我的客户在他们用来浏览我的Web应用程序的每台计算机上安装字体.