【问题标题】:End of file is reached before the image could be parsed在可以解析图像之前到达文件末尾
【发布时间】:2014-02-01 08:26:21
【问题描述】:

谁能告诉我为什么...
<img src="@Url.Action("Index", "ReturnImage", @Model.GUID) alt="Doorstep signature" style="width:290px;height:290px;"/>

用初始标记标记错误

'<'

    End of file was reached before the 'img' tag could be parsed. Elements inside markup blocks must be complete. 
    They must either be self-closing("<br />") or have matching end tags ("<p>Hello</p>". 
    If you intended to display a "<" character, use the "&lt;" HTML entity.

【问题讨论】:

    标签: c# asp.net html asp.net-mvc-3


    【解决方案1】:

    问题是运行时无法处理冲突的引号。对于 src 它看到"@Url.Action("

    将其更改为:

    <img src='@Url.Action("Index", "ReturnImage", @Model.GUID)' alt="Doorstep signature" style="width:290px;height:290px;"/>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-06-13
      • 1970-01-01
      • 1970-01-01
      • 2013-02-08
      • 2019-12-31
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多