Changing font-family for placeholder

后端 未结 5 2148
你的背包
你的背包 2020-12-29 04:40

Is it posible for input field to have one font-family and it\'s placeholder other?

I have tried to change font-family for input\'s placeholder with already defined @

5条回答
  •  情歌与酒
    2020-12-29 05:11

    Found it...

    Prefix for Firefox 19+ users is ::-moz-placeholder

    And the code looks like this

    .mainLoginInput::-moz-placeholder {
       font-family: 'myFont', Arial, Helvetica, sans-serif;  
    }
    

提交回复
热议问题