gpt4 book ai didi

asp.net-mvc-2 - 在 Html.ActionLink MVC2 中为长链接标题添加换行符

转载 作者:行者123 更新时间:2023-12-02 00:04:09 25 4
gpt4 key购买 nike

我的标题很长,需要在 ActionLink 中添加换行符之类的内容。我尝试过\r\n 以及 System.Environment.NewLine...但都没有成功。

<%=Html.ActionLink("Long title goes here", "index", "Overview")%>

最佳答案

你可以尝试这样的事情:

<a href="<%= Url.Action("index", "overview") %>">
Long title first line<br/>
Long title second line<br/>
Long title third line
</a>

关于asp.net-mvc-2 - 在 Html.ActionLink MVC2 中为长链接标题添加换行符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4473331/

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