使用以下标记,我总能得到与找不到的图片相同的外观:alt
和title
仍在那里,但没有图片。
<div class="def-orange">
<h3>Sign Up</h3>
<p>
Which kind of profile would you like?
</p>
</div>
<a href="@Url.Action("RegisterSenior", "Account", new RouteValueDictionary {{"userSide", "contractor" }})">
<img src="images/signup-contractor.png" alt="mans's head sillouheted with safety helmet" title="As a Senior">
</a>
<a href="@Url.Action("RegisterEmployer", "Account", new RouteValueDictionary {{"userSide", "employer" }})">
<img src="/Images/signup-employer.png" alt="mans's head sillouheted with collar and tie" title="As an Employer">
</a>
<div class="def-orange">
Already have an account? @Html.ActionLink("Sign In", "Login", "Account")
</div>
我知道这两个图像都存在,因为我可以交换它们,当两个a
标签中的一个在右侧时,两个图像都会显示,而当它们位于左侧时,它们都不显示{{ 1}}标签。
答案 0 :(得分:1)
将images/signup-contractor.png
更改为/Images/signup-contractor.png