XSLT-如何使IE常规语句在XSTL中工作 [英] XSLT - How to get IE consitional statements working in an XSTL
本文介绍了XSLT-如何使IE常规语句在XSTL中工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我注意到IE条件语句在转换后的XML文档中不起作用。如何获得IE 6及更高版本来处理它们。
I've noticed IE conditional statements don't work in the transformed XML document. How do I get IE 6 and above to process them.
代码如下
'<!--[if IE 6]><style type="text/css" media="all">@import "/css/ie6.css";</style>'
谢谢。
推荐答案
最后,我必须在文档中使用doctype。 IE在没有它的情况下进入了怪癖模式,这就是为什么我首先需要条件样式表的原因。
In the end, I had to use a doctype in the document. IE was going into quirks mode without it and that's why I needed a conditional stylesheet in the first place.
这篇关于XSLT-如何使IE常规语句在XSTL中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文