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

前端 未结 2 804
北恋
北恋 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: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

提交回复
热议问题