【问题标题】:Why does only one image from the two render?为什么两个中只有一个图像渲染?
【发布时间】:2017-11-18 18:27:04
【问题描述】:

使用以下标记,我总是得到与未找到图像时相同的外观:它的 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 标记之一的右侧时,两个图像都显示,而当它们位于左侧 a 标记时,它们都不会显示.

【问题讨论】:

    标签: html image layout


    【解决方案1】:

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

    【讨论】:

    • 差点跑掉的斜线。谢谢。
    猜你喜欢
    • 2020-09-30
    • 2021-06-28
    • 2012-12-23
    • 2015-03-16
    • 2017-11-22
    • 1970-01-01
    • 2013-06-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多