Can't style text on input submit button as bold?

前端 未结 2 800
北恋
北恋 2020-12-16 01:43

I\'m trying to style the font in an input button as bold.

Here\'s my code:



        
相关标签:
2条回答
  • 2020-12-16 02:29

    Are you using chrome for a MacOS? If so, try adding a background-color to the button to see if it fixes it. The default Aqua styles might be interfering. You can also try -webkit-appearance: none; or -webkit-appearance: button;.

    0 讨论(0)
  • 2020-12-16 02:39

    When you use numeric values with the font-weight property and you want to use bold then use the value greater than or equal to 700

    .nm-button {
      text-transform: uppercase;
      padding: 5px;
      color: blue;
      font-weight: 700;
    }
    

    Js Fiddle Demo

    0 讨论(0)
提交回复
热议问题