我在IE8+浏览器中呈现页面时遇到了问题,它在FireFox上工作得很好。如果我保持下面的代码,那么它不会在IE8+中呈现页面。它只在兼容视图模式下渲染,而不在普通模式下渲染。
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!--
我想在WordPress中用jQuery开发简单的幻灯片。它在除IE之外的所有浏览器中都运行得很好。
var blockShow = function(element,nav,duration) {
//alert(element);
container = jQuery(element); // but in this function throw error: Object doesn't support this property or method
}
// this works
jQuery(document).ready(
function() {
i
我的代码在Firefox和Chrome中运行良好,但在IE 11中不能正常工作。我收到下一个错误消息:
1) SCRIPT5009: '$' is undefined
For this line of code:
$.extend({
)}
2)SCRIPT5009: 'jQuery' is undefined
// Browser globals
factory( jQuery );
3)SCRIPT1010: Expected identifier
我为一个小项目开发了一个小幻灯片,效果很好。在Google Chrome,Opera,Friefox和IE9中,但是在IE8和IE7中,它不起作用。
我发现了这个问题-问题是,IE7和IE8找不到dom中的元素。
下面是:
window.alert(thisWrapper.find('img').length); // returns 4 in all browser - in IE7 and IE8 it returns 0
thisWrapper.find('img').each(function(){
// do something with it