src/ZKEACMS.SectionWidget/Views/Shared/SectionPartial.Image.cshtml

(完整代码) 745B

@model SectionContentImage


@if (Model.Href.IsNotNullAndWhiteSpace())
{
    <a href="@Url.PathContent(Model.Href)" target="@Html.SmartLinkTarget(Model.Href)">
        <img src="@Url.Content(Model.ImageSrc)" alt="@Model.ImageAlt" title="@Model.ImageTitle" style="object-fit:cover;@(Model.Width.HasValue ? "width:" + Model.Width.Value + "px;" : string.Empty)@(Model.Height.HasValue ? "height:" + Model.Height.Value + "px;" : string.Empty);" />
    </a>

}
else
{
    <img src="@Url.Content(Model.ImageSrc)" alt="@Model.ImageAlt" title="@Model.ImageTitle" style="object-fit:cover;@(Model.Width.HasValue ? "width:" + Model.Width.Value + "px;" : string.Empty)@(Model.Height.HasValue ? "height:" + Model.Height.Value + "px;" : string.Empty);" />
}


24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。