Styling Password Fields in CSS

后端 未结 4 1146
一个人的身影
一个人的身影 2020-11-30 06:25

I\'m experiencing a minor issue with fonts in my stylesheet.

This is my CSS:

body
{
  ...
  font: normal 62.5% \"Lucida Sans Unicode\",sans-serif;
}
         


        
4条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-30 06:50

    I found I could improve the situation a little with CSS dedicated to Webkit (Safari, Chrome). However, I had to set a fixed width and height on the field because the font change will resize the field.

    @media screen and (-webkit-min-device-pixel-ratio:0){ /* START WEBKIT */
      INPUT[type="password"]{
      font-family:Verdana,sans-serif;
      height:28px;
      font-size:19px;
      width:223px;
      padding:5px;
      }
    } /* END WEBKIT */
    

提交回复
热议问题