zoukankan      html  css  js  c++  java
  • MVC 创建带图片的<A></A>标签

                        <a href="@Url.Action("Detail", "Product", new { messageId = item.message.MessageId })" class="js-fancybox">
                                                @{
                                                    if (item.Attachment.Count > 0)
                                                    {
                                                        <img  src= "@item.Attachment[0].Parth" alt="@item.message.MessageTitle"/>
                                                    }
                                                    else
                                                    {
                                                        <img src="#" alt="@item.message.MessageTitle" />
                                                    }
                                            }
                                         </a>

    <a href="@Url.Action("CutImg","ListenMedia", new { item, id = ViewBag.id })">
    <img id="@item" src="@item" width="200" height="100" />
    </a> 

  • 相关阅读:
    设计模式—享元模式
    设计模式—观察者模式
    设计模式—桥接模式
    设计模式—代理模式
    设计模式—装饰模式
    设计模式—单例模式
    设计模式—建造者模式
    设计模式—简单工厂
    源码解读—HashTable
    源码解读—HashMap
  • 原文地址:https://www.cnblogs.com/520cc/p/3229352.html
Copyright © 2011-2022 走看看