src/ZKEACMS.SectionWidget/Views/SectionTemplate.ImageGreyBox.cshtml
(完整代码) 1KB@model SectionGroup
@using (Style.AtHead())
{
<style>
.image-grey-box-item {
display: block;
float: left;
position: relative;
margin:1px;
transition: all .2s linear;
text-align: center;
color: #fff;
}
.image-grey-box-item:hover {
color: #fff;
}
.image-grey-box-item .image-box-description {
position: absolute;
left: 50%;
top: 35%;
}
.image-grey-box-item .image-box-description-inner {
position: relative;
left: -50%;
border: 1px solid #fff;
}
.image-grey-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-grey-box-item" href="@Url.PathContent(content.Href)">
<img src="@Url.PathContent(content.ImageSrc)" alt="@content.ImageAlt" />
<div class="image-box-description">
<div class="image-box-description-inner">
<h3>
@content.ImageTitle
</h3>
<p>
@content.ImageAlt
</p>
</div>
</div>
</a>
}
</div>
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。