Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/74.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 更改xsl中href的样式或颜色_Html_Css_Xslt - Fatal编程技术网

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

Html 更改xsl中href的样式或颜色,html,css,xslt,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> 请添加 style="text-decoration:underl

我在xsl中得到了这段代码。当它呈现链接时,链接看起来像没有蓝色下划线超链接样式的常规文本。我怎样才能改变这种行为

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

请添加

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>


您可以使用CSS更改它……您可以更改XSL中的链接吗?如果是这样,给它一个id和/或类,并使用CSS来设置样式。