日期:2014-05-18  浏览次数:20436 次

请问如何在xsl+xml页面中引入css文件
<link   rel= "stylesheet "   type= "text/css "   href= "/StyleSheet.css "/>
<?xml-stylesheet   href= 'StyleSheet.css '   type= 'text/css '?>
上面这两种方法都试过了,没有任何反应
只有下面这种方法可以
<style>
    <xsl:comment>
        <![CDATA[
            ......................                
        ]]>
    </xsl:comment>
</style>
请问高手,不能引用外部的CSS文件吗?


------解决方案--------------------
好像不行,我上次这样做也不行,后来把CSS全部写在xslt文件里
------解决方案--------------------
http://www.w3schools.com/xsl/el_processing-instruction.asp
------解决方案--------------------
<link rel= "stylesheet " type= "text/css " href= "/StyleSheet.css " />
是应当可以的