看起来Twenty14在\'less than IE 9\' 条件标记,这可以解释为什么它不适用于IE11。
<!--[if lt IE 9]>
<link rel=\'stylesheet\' id=\'twentyfourteen-ie-css\' href=\'http://localhost/wordpress_answers/wp-content/themes/twentyfourteen/css/ie.css\' type=\'text/css\' media=\'all\' />
<![endif]-->
听起来你想把你自己的IE特定样式表排队。这可能是在
child theme, 因此,您可以在可能的情况下更新2014。
You can use this code to enqueue your own IE specific stylesheet:
// Load the Internet Explorer specific stylesheet.
wp_enqueue_style( \'my-ie-styles\', get_template_directory_uri() . \'/css/my_ie_styles.css\', array( \'twentyfourteen-style\', \'genericons\' ), \'20131205\' );
wp_style_add_data( \'my-ie-styles\', \'conditional\', \'IE\' );
wp_style_add_data()
将在IE特定条件内输出链接标记:
<!--[if IE]>
<link rel=\'stylesheet\' id=\'my-ie-styles-css\' href=\'http://localhost/wordpress_answers/wp-content/themes/twentyfourteen/css/my_ie_styles.css\' type=\'text/css\' media=\'all\' />
<![endif]-->