src/ZKEACMS.SectionWidget/Views/SectionTemplate.ImageBox.cshtml

(完整代码) 1KB

@model SectionGroup
@using (Style.AtHead())
{
    <style>
        .image-box-item {
            display: block;
            float: left;
            position: relative;
            margin:1px;
            transition: all .2s linear;
        }
        .image-box-item:hover{
            transform:scale(.98);
        }
        .image-box-item .image-box-description {
            position: absolute;
            bottom: 10px;
            left: 10px;
            right: 10px;
            filter: progid:DXImageTransform.Microsoft.gradient(enabled='true', startColorstr='#CCFFFFFF', endColorstr='#CCFFFFFF');
            background: rgba(255,255,255,.8);
            color: #333;
            text-align: center;
            -webkit-transition: all .35s linear;
            -moz-transition: all .35s linear;
            transition: all .35s linear;
        }
        .image-box-item .image-box-description h3{
            margin:10px;
        }
    </style>
}
<div class="section-group-image-box clearfix">
    @foreach (SectionContentImage content in Model.SectionImages.OrderBy(m => m.Order))
    {

        <a class="image-box-item" href="@Url.PathContent(content.Href)">
            <img src="@Url.PathContent(content.ImageSrc)" alt="@content.ImageAlt" />
            <div class="image-box-description">
                <h3>
                    @content.ImageTitle
                </h3>
                <p>
                    @content.ImageAlt
                </p>
            </div>
        </a>
    }
</div>

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

AI 解读 AI

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

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