1.超链接(XSLT):

<a>
    <xsl:attribute name="href">#<xsl:value-of select="Test_Name"/></xsl:attribute>
    <xsl:value-of select="Test_Name"/>
</a> 

转义(HTML):

<a href="#Test_Name的值">Test_Name的值</a>

2.跳转到该处(XSTL):

<h1>
    <xsl:attribute name="id"><xsl:value-of select="Test_Name"/</xsl:attribute>
    <xsl:value-of select="Test_Name"/>
</h1>

转义(html):

<h1 id="Test_Name的值">Test_Name的值</h1>

html实现在页内跳转到指定位置:

<a href="#hid">点击跳转</a>
<h1 id="hid">跳转到该处</h1>

 

posted on 2021-03-12 09:22  未来是靠自己的  阅读(89)  评论(0)    收藏  举报