gpt4 book ai didi

html - 如何在 HTML 中编写按钮以转到链接?

转载 作者:太空宇宙 更新时间:2023-11-04 14:20:01 25 4
gpt4 key购买 nike

我的 Razor View 中有以下内容:

<button class="float-left submit-button" title="Test Questions">Test</button>

我怎样才能让它在单击按钮时转到以下 URL?

"~/F000C/Home-About"

最佳答案

只需使用一个链接一个按钮,就像这样:

<a href="http://www.example.com"><button class="float-left submit-button" title="Test Questions">Test</button></a>

关于html - 如何在 HTML 中编写按钮以转到链接?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14306777/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com