我知道wp_script_add_data
和wp_style_add_data
是添加IE条件的正确函数。
For example, this:
wp_script_add_data( \'foo\', \'conditional\', \'lt IE 9\' );
Would get you this:
<!--[if (lt IE 9)]>
<script type="text/javascript" src="foo.js"></script>
<![endif]-->
<小时>
However, what if I want to do this (IE browsers between certain versions)?
<!--[if (gt IE 6)&(lt IE 9)]>
<script type="text/javascript" src="foo.js"></script>
<![endif]-->