输入密码字体-family [英] Input password font -family
问题描述
是否有方法可以更改输入[password]的字体
?
ve创建了一个带有平方星号的webfont(
WOFF
)来模拟 -webkit-text-安全:平方
。
字体呈现正常,我在一些< h1& code>和
< p>
但我无法在我的输入[type =password code>:
input [type =password] {
font-family:Squared ;
letter-spacing:1px;
}
尝试其他字体,但似乎我无法更改浏览器的字体
我也尝试过使用!important
。
UPDATE: 此问题提供涉及密码输入字体的答案。它只是对我失望吗?
这取决于浏览器和操作系统。
你可以使用其他属性,但没有太多你可以做的相关的font-family,而不使用JS ..
Is there a way to change the font of an input["password"]
?
I've created a webfont (WOFF
) with a squared asterisk
to simulate -webkit-text-security: squared
.
The font is rendered fine, I've tried in some <h1>
and <p>
but I'm unable to render that font on my input[type="password"]
:
input[type="password"] {
font-family: "Squared";
letter-spacing: 1px;
}
Tried other font's but it seems I can't change the font that the browser sets for password inputs.
Is there any way to accomplish this?
I tried also with !important
.
UPDATE: This question provides answers involving fonts on passwords inputs. Is it failing just to me?
This is dependent upon the browser and possibly OS ..
You can use other properties but there isn't much you can do related to font-family without using JS ..
这篇关于输入密码字体-family的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!