How to create an HTML button that acts like a link?
1.使用 form
2.JavaScript
3.使用链接,样式设置成按钮
css:
a.button {
-webkit-appearance: button;
-moz-appearance: button;
appearance: button;
text-decoration: none;
color: initial;
}
4.链接+button
简约 · 精致 · 专注内容
How to create an HTML button that acts like a link?
1.使用 form
2.JavaScript
3.使用链接,样式设置成按钮
css:
a.button {
-webkit-appearance: button;
-moz-appearance: button;
appearance: button;
text-decoration: none;
color: initial;
}
4.链接+button