我无法创建抖音页面链接,因为有一个@,但其他链接工作正常。有谁知道如何修复它?

发布于 2025-01-17 14:41:17 字数 1391 浏览 3 评论 0原文

我正在(大部分)用 HTML 构建一个网站。它是视觉工作室上的 Blazor 应用程序。这是代码。前两个按钮可以使用,但 TikTok 中的 @ 周围有错误。有人知道该怎么办吗?桌子是这样的,我可以将按钮并排放置。这是 TikTok 页面,而不是视频。其他人一直告诉我嵌入视频。它应该将他们带到 TikTok,以便他们可以关注。

<table class="center">
    <tr>
        <td>
            <button Class=accordion-item onclick="window.location.href='https://www.instagram.com/ringle.ye/'">
                <img src="Images/Contact us/instagram (1).png" width=250/>
                <h2>Instagram</h2>
            </button>
        </td>
        <td>
            <button Class=accordion-item onclick='window.location.href="https://www./tiktok.com/@ringle.ye/"'>
                <img src="Images/Contact us/372102690_TIKTOK_LOGO_1080.png" width=250/> 
                <h2>TikTok</h2>
            </button>
        </td>
        <td>
            <button Class=accordion-item onclick="window.location.href='mailto:[email protected]'">
                <img src="Images/Contact us/apple-mail.png" width=250/>
                <h2>Mail</h2>
            </button>
        </td> 
    </tr>
</table>

该链接需要 @ 才能到达正确的位置(否则会出现错误 404)。我尝试过其他的东西,但它们很混乱而且不起作用。

I'm building a website in HTML (mostly). It is a blazor application on visual studios. This is the code. The first two buttons work but there is an error around the @ in the TikTok one. Does anyone know what to do? The table is so I can have the button side by side. It is a TikTok PAGE, not a VIDEO. everyone else keeps telling me to embed a video. It's supposed to take them to TikTok so they can follow.

<table class="center">
    <tr>
        <td>
            <button Class=accordion-item onclick="window.location.href='https://www.instagram.com/ringle.ye/'">
                <img src="Images/Contact us/instagram (1).png" width=250/>
                <h2>Instagram</h2>
            </button>
        </td>
        <td>
            <button Class=accordion-item onclick='window.location.href="https://www./tiktok.com/@ringle.ye/"'>
                <img src="Images/Contact us/372102690_TIKTOK_LOGO_1080.png" width=250/> 
                <h2>TikTok</h2>
            </button>
        </td>
        <td>
            <button Class=accordion-item onclick="window.location.href='mailto:[email protected]'">
                <img src="Images/Contact us/apple-mail.png" width=250/>
                <h2>Mail</h2>
            </button>
        </td> 
    </tr>
</table>

The link requires an @ for it to go to the right place (otherwise error 404). I've tried other things but they're messy and don't work.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

薄暮涼年 2025-01-24 14:41:17

您可以使用

href="@("https://www./tiktok.com/@ringle.ye/")"

you can use

href="@("https://www./tiktok.com/@ringle.ye/")"
傻比既视感 2025-01-24 14:41:17

可能是您可以尝试这种

<a href="@("https://www.tiktok.com/@ringle.ye")"><h2>TikTok</h2></a>

希望可以帮助您

may be you can try this

<a href="@("https://www.tiktok.com/@ringle.ye")"><h2>TikTok</h2></a>

hope can help you

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文