【发布时间】:2012-07-11 18:40:59
【问题描述】:
这是真的吗?我正在visual studio中开发一个mvc3应用程序,我希望我用作标题的图像成为返回主页的链接,但由于我只是在本地运行它,所以我使用这一行作为代码:
<a href="localhost:60060">
<img src="../../Content/images/LionLabs.png" alt="Lion logo">
</a>
但这不起作用!是我做错了什么,还是只是localhosts不能这样使用?
我也只是尝试使用 javascript 方法作为 href 来刷新页面,但这也不起作用:(
【问题讨论】:
-
"这行不通!"不是很具有描述性。 什么不起作用?你认为这不会发生什么?
标签: html asp.net-mvc-3 localhost