我在.cshtml页面中的HTML代码是
<menu id="menuTools">
@Html.ActionLink("Test1", "Index", new { Area = "Tools", Controller = "Controller1" })
@Html.ActionLink("Test2", "Index", new { Area = "Tools", Controller = "Controller2" })
@Html.ActionLink("Test3", "Index", new { Area = "Tools", Controller = "Controller3" })
</menu>
我需要在每个菜单前面使用箭头标记而不是元素符号。谢谢。
更新:当我单击特定菜单时,我需要有箭头标记。谢谢。
最佳答案
最简单的方法是给 ul 一个类似的样式
list-style-image:url('/path/to/yourArrow.png');
那么你可能需要使用 列表样式位置:Xpx Ypx; 另外还要将其对齐。请参阅http://www.w3schools.com/cssref/pr_list-style-image.asp
关于asp.net - 如何在 html 菜单中使用箭头标记而不是元素符号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12177864/