I\'m trying to add link to my buttons.
My current HTML codes are below
6条回答 北海茫月 (楼主) 2020-12-06 23:25 is the HTML element used for creating links, not , so use an element with an href attribute instead of a . You can then style it to look at much like a button as you like (although I note that most of the CSS you are applying to your elements is geared at making it look unlike a button. About the only thing you are likely to need to do to it is display: inline-block; text-decoration: none; color: black). 0 讨论(0) 查看其它6个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
is the HTML element used for creating links, not , so use an element with an href attribute instead of a .
href
You can then style it to look at much like a button as you like (although I note that most of the CSS you are applying to your elements is geared at making it look unlike a button. About the only thing you are likely to need to do to it is display: inline-block; text-decoration: none; color: black).
display: inline-block; text-decoration: none; color: black