在xsl中更改href的样式或颜色

时间:2013-07-18 22:34:41

标签: html css xslt

我在xsl中得到了这段代码。当它呈现链接看起来像普通文本时没有带蓝色下划线的超链接样式。我该如何改变这种行为?

<a href="javascript:void window.open('{$viewPropUrl}','_blank','height=800,width=800,scrollbars=yes,resizable=yes')"> Open and Show Details </a>

1 个答案:

答案 0 :(得分:1)

请添加

style="text-decoration:underline; color:#FF0000;"

到您的链接。

所以它看起来像这样:

 <a href="javascript:void window.open('{$viewPropUrl}','_blank','height=800,width=800,scrollbars=yes,resizable=yes')" style="text-decoration:underline; color:#FF0000;"> Open and Show Details </a>