这是一种非常特殊的情况。我正在开发一个web应用程序,需要支持IE8和更高版本的浏览器。对于IE8,我们已经成功地加载了jQuery1.X和jquery UI (它们都位于一个文件中),我们为现代浏览器(在另一个文件中)提供了JQUery 2和JQuery UI。问题是,我需要找到一种方法,只为IE8加载jQuery1.X插件,为现代浏览器加载其余的插件。
当您必须添加针对特定浏览器的css时,我已经找到了一些解决方案,而不是允许我在jsp文件上这样做的解决方案。
**Load just for modern browsers (ie9, ie10,ie11, chrome, firefox)
我正在使用vaadin来创建一个web应用程序。我想将legacy-styles.css导入到styles.css中
我的styles.css如下:
@import "../reindeer/legacy-styles.css";
.v-app {
background: yellow;
}
然后使用morderniz进行targer IE8
Element head = response.getDocument().head();
Element meta = head.appendElement("meta");