How to style a div like the button-element?

后端 未结 5 1534
南笙
南笙 2021-01-04 13:12

I\'ve noticed that when using the element, the browsers will naturally assume that you want to center the inline content, and that

5条回答
  •  梦毁少年i
    2021-01-04 13:46

    Maybe you are asking the wrong question.

    It may be simpler to give your button a class and then ensure the inline content is styled as you want.

    Anything that you can put in a DIV, you should be able to put in a button.

提交回复
热议问题