Why can I not group browser-specific CSS-selectors for different browsers?

前端 未结 3 752
庸人自扰
庸人自扰 2021-01-12 22:11

I just tried to write the following rule to style the input placeholder for browsers that support it:

#main input::         


        
3条回答
  •  梦谈多话
    2021-01-12 22:23

    If you are willing to use JavaScript, check out the -prefix-free script. It allows you to leave off the vendor specific prefixes (e.g. -webkit- or -moz-) for CSS properties like these.

提交回复
热议问题