CSS Input Type Selectors - Possible to have an “or” or “not” syntax?

前端 未结 2 760
挽巷
挽巷 2021-02-01 00:14

If they exist in programming),

If I have an HTML form with the following inputs:





        
2条回答
  •  我在风中等你
    2021-02-01 00:54

    input[type='text'], input[type='password']
    {
       // my css
    }
    

    That is the correct way to do it. Sadly CSS is not a programming language.

提交回复
热议问题