🌈 搜索
📅  最后修改于: 2022-03-11 14:53:21.157000             🧑  作者: Mango
It is not allowed to place a link element inside a element. Some browsers will actually do what you want, and some won't. If you must have a button that acts as a link, there are two solutions: Style the link Use only the element and use CSS to style it like a button (which you have indicated you don't want). Wrap button in form Wrap the in a and set the link target as the form's action attribute: