【发布时间】:2017-11-18 18:27:04
【问题描述】:
使用以下标记,我总是得到与未找到图像时相同的外观:它的 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 标记之一的右侧时,两个图像都显示,而当它们位于左侧 a 标记时,它们都不会显示.
【问题讨论】: