Php internet explorer问题
您好,我在Joomla开发了一个网站,该网站在Mozilla、Safari和chrome中运行良好,但当我在InternetExplorer中渲染它时,会出现以下错误 请告诉我这个Php internet explorer问题,php,css,internet-explorer,joomla,Php,Css,Internet Explorer,Joomla,您好,我在Joomla开发了一个网站,该网站在Mozilla、Safari和chrome中运行良好,但当我在InternetExplorer中渲染它时,会出现以下错误 请告诉我这个 User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath
User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2)
Timestamp: Fri, 23 Oct 2009 05:15:31 UTC
Message: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)
Line: 0
Char: 0
Code: 0
URI: http://localhost/flagdown/index.php?option=com_companies&view=profile&TAXI_ID=a936db2fe93260547e75782e250d672c&COMPANY_NAME=asd1234&CONTACT_NAME=aa&ADDRESS=aaa&SERVICE_EMAIL=ankit@aa.com&ADMIN_EMAIL=aahorror@aa.com&DISPATCH_PHNO=5555555555&ADMIN_PHNO=5555555555&NO_OF_TAXIS=57&ALLOW_AD=&TOTAL_REBATE=0.000000&USERNAME=ankit
尝试使用验证HTML,以确保已正确关闭所有元素(并且HTML有效) 然后,确保在页面完全加载之前没有干扰DOM
要了解更多信息,我们必须查看您的HTML源代码和任何JavaScript(特别是任何操纵DOM的JS)。问题可能与格式错误的XHTML有关,请查看更多信息。听起来您有一些JavaScript试图在DOM准备好之前修改它。你在使用JS库吗?他们真的帮了大忙;例如,jQuery解决方案将是
$(document).ready(function() {
// Any code you put in here won't run until everything is ready.
});
如果您尚未通过验证HTML并使用以下方法解决此问题:
window.onload = function() { /* code here instead so you are sure dom is complete */ }
或
然后您可能需要设置一个超时
例如:
有时候我需要多一点时间 容器中是否有脚本元素可由脚本修改?
$(document).ready(function() {
// Any code you put in here won't run until everything is ready.
});
$(document).ready(function() {
setTimeout(function() {
// Any code you put in here won't run until everything is ready.
}, 500);
});