zoukankan      html  css  js  c++  java
  • Moss2007 XSL 超链接 数据列表行样式

    超链接代码如下:

    <td class="ms-vb">
    <a href="http://www.northwindtraders.com/catalog/{@Category}/{@Title}">
    <xsl:value-of select="@Product_x0020_Name" />
    </a>
    </td>

    <td class="ms-vb">
    <a href="http://www.northwindtraders.com/catalog/{@Category}/{@Title}">
    <xsl:attribute name="title">
    <xsl:value-of select="@Description"/>
    </xsl:attribute>
    <xsl:value-of select="@Product_x0020_Name" />
    </a>
    </td>

    改变数据列表行样式:

    <xsl:template name="dvt_1.rowview">
    <tr>
    <xsl:if test="position() mod 2 = 1">
    <xsl:attribute name="class">ms-alternating</xsl:attribute>
    </xsl:if>
    <td class="ms-vb"><xsl:value-of select="@Category" /></td>

    <td class="ms-vb">
    <a href="http://www.northwindtraders.com/catalog/{@Category}/{@Title}">
    <xsl:attribute name="title">
    <xsl:value-of select="@Description"/>
    </xsl:attribute>
    <xsl:value-of select="@Product_x0020_Name" />
    </a>
    </td>

  • 相关阅读:
    url 编码与解码
    调硬件开门
    JsBridge 开灯关灯
    滚动条样式
    uni-app 组件传值及插槽
    Eapp 调接口及跳转
    uni-app 的基础格式
    Eapp 几个弹框
    flexible 移动端适配
    mongodb恢复备份
  • 原文地址:https://www.cnblogs.com/bmib/p/1993520.html
Copyright © 2011-2022 走看看