Using href attribute for button element

前端 未结 4 1534
灰色年华
灰色年华 2021-01-27 23:01

I need that use href=\"\" attribute for button

like this Instead of

4条回答
  •  日久生厌
    2021-01-27 23:41

    href attribute can not be used on button tag , if you want button like appearance for your a tag you can use add style to your a tag and make it look like button , add bootstrap reference then add button class to your anchor tag. Custom Bootstrap Button , but if you still want to use button tag then adding onclick event is better option

提交回复
热议问题