text-transform: capitalize; Also affects Placeholder

前端 未结 1 914
野趣味
野趣味 2021-02-12 03:33

I have the following simple input.


When I use text-transform: capita

相关标签:
1条回答
  • 2021-02-12 04:21

    You could style the placeholder--

    ::-webkit-input-placeholder {
       text-transform: initial;
    }
    
    :-moz-placeholder { 
       text-transform: initial;
    }
    
    ::-moz-placeholder {  
       text-transform: initial;
    }
    
    :-ms-input-placeholder { 
       text-transform: initial;
    }
    
    0 讨论(0)
提交回复
热议问题