为什么两个渲染中只有一个图像?

时间:2017-06-16 05:25:52

标签: html html5 image layout

使用以下标记,我总能得到与找不到的图片相同的外观:alttitle仍在那里,但没有图片。

<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?&nbsp;@Html.ActionLink("Sign In", "Login", "Account")
</div>

我知道这两个图像都存在,因为我可以交换它们,当两个a标签中的一个在右侧时,两个图像都会显示,而当它们位于左侧时,它们都不显示{{ 1}}标签。

1 个答案:

答案 0 :(得分:1)

images/signup-contractor.png更改为/Images/signup-contractor.png