PageAdmin网站内容管理系统(CMS)交流论坛

注册

 

QQ登录

只需一步,快速开始

发新话题 回复该主题

请问图片的alt标签怎么添呢? [复制链接]

1#
请问图片的alt标签怎么添呢?
分享 转发
TOP
2#

是这个位置吗?具体标签怎么添加呢?能麻烦演示一下吗?
微信图片_20221227202529.png (, 下载次数:0)

(2022/12/27 20:27:05 上传)

微信图片_20221227202529.png

TOP
3#

下面是案例展示的Detail.cshtml,请问在哪个位置添加呢?需要添加什么内容呢?

@{
    int columnId = Html.CurrentColumnId();
    dynamic infoData = Html.InfoData();
    dynamic prevData = Html.InfoDataPrevious(null, "columnid=@columnId", new { columnId = columnId });
    dynamic nextData = Html.InfoDataNext(null, "columnid=@columnId", new { columnId = columnId });
    string templateDirectory = ViewBag.TemplateDirectory;
}



@Html.Partial("BannerPartial")
<div class="main">
    @Html.Partial("BreadcrumbPartial")
    <div class="container" style="padding: 30px 20px;">
            <div class="info-content newsdetails">
                <h4 class="text-center line-height-3">@infoData.Title</h4>
                <div class="text-center">
                    <span title="发布时间" class="margin-right-20">发布时间: @infoData.Thedate.ToString("yyyy-MM-dd")</span>
                    <span title="点击数"><span id="lb_clicks">0</span> 次浏览</span>
                </div>
                <div class="padding-top-20" id="Content">
                    <div class="intro">
                        @infoData.Introduction
                    </div>


                    <!--图片组-->
                    @Html.Partial("DetailImagesModel", Html.AttachmentDataList(new { ParentTable = "cases", ParentField = "images", ParentId = (int)infoData.Id }))
                </div>


                    @Html.Raw(infoData.Content)
                </div>
                <div class="clearFix padding-top-20 line-height-2">
                    <ul>
                        @if (prevData != null)
                        {
                            string url = Html.InfoDataUrl((int)prevData.ColumnId, (int)prevData.Id);
                            <li style="color595959;">上一篇:<a href="@url">@prevData.Title</a></li>
                        }
                        @if (nextData != null)
                        {
                            string url = Html.InfoDataUrl((int)nextData.ColumnId, (int)nextData.Id);
                            <li style="color595959;">下一篇:<a href="@url">@nextData.Title</a></li>
                        }
                    </ul>
                </div>
            </div>
</div>

<script type="text/javascript">
    var $lb_clicks = $("#lb_clicks");
    $.post("/E/InfoData/AddClicks", { ColumnIdinfoData.ColumnId,IdinfoData.Id}, function (data) { $lb_clicks.text(data)})
</script>
TOP
4#

想修改这两个位置的文字,是建站小白,麻烦大神能指导得更详细些,谢谢!
QQ截图20221228153011.jpg (, 下载次数:0)

(2022/12/28 15:50:13 上传)

QQ截图20221228153011.jpg

TOP
5#

请问,完整的图片alt标签代码怎么写呢?
TOP
发新话题 回复该主题