Why is 'font-family' not inherited in '<button>' tags automatically?

后端 未结 3 1721
别跟我提以往
别跟我提以往 2020-12-16 11:13

I have noticed that in case of

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-16 11:33

    Form elements don't inherit font settings, you have to set these properties manually.

    If you use font declaration for eg. body,

    body {font-family: arial, sans-serif}
    

    use just

    body, input, textarea, button {font-family: arial, sans-serif}
    

    or

    input, textarea, button {font-family: inherit}
    

提交回复
热议问题