这就是jsfiddle在IE8中的样子:
以及以下js错误:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)
Timestamp: Mon, 8 Apr 2013 09:49:23 UTC
Message: Expected ':'
Line: 222
Char: 1
Code: 0
URI: http://jsfiddle.net/js/jshint.js?TheBlackKeys
Message: Expected identifier
Line: 105
Char: 25
Code: 0
URI: http://jsfiddle.net/js/EditorCM.js?TheBlackKeys
Message: Object doesn't support this property or method
Line: 24
Char: 5
Code: 0
URI: http://jsfiddle.net/js/heyoffline.js?TheBlackKeys
Message: 'MooShellEditor' is undefined
Line: 91
Char: 7
Code: 0
URI: http://jsfiddle.net/
Message: Object doesn't support this property or method
Line: 7326
Char: 2
Code: 0
URI: http://jsfiddle.net/js/moo-clientcide-1.3.js?TheBlackKeys
Message: 'editor' is null or not an object
Line: 130
Char: 5
Code: 0
URI: http://jsfiddle.net/js/Actions.js?TheBlackKeys
答案 0 :(得分:2)
jsFiddle与IE8不兼容。 要在不受支持的浏览器下进行测试,我们建议您使用“草稿”功能:http://doc.jsfiddle.net/basic/introduction.html#draft-page
答案 1 :(得分:1)
与编程或编码无关,只是http://jsfiddle.net/与交叉浏览器兼容性(在本例中为IEv8)的不良考虑因素
无论如何,如果你真的需要在IE8中测试,请在控制台中运行:
document.getElementById('content').style.height = '800px';
'800px'适合您的需求。
答案 2 :(得分:0)