时间:2021-07-01 10:21:17 帮助过:28人阅读
Ok,你可以改为:
下面开始尝试改为Html.ActionLink:
@Html.ActionLink(" ", "Index", "Home", null, new{ style = "background: url('" + Url.Content("~/https://www.gxlcms.com/Content/img/logo/logo4-corporation.png") + "') no-repeat center right; display:block; height:84px; width:264px;"})
把样式代码,移至一个css样式文件或是代码块中: