I really don't understand how ie parses php. [I really don't understand how ie works.] index. one section in the PHP file looks like this: & lt; divclass = & quot; wraper & quot; & gt; & lt; divclass = & quot; primary_wrap & quot; & gt; I really don't understand how ie parses php.
[I really don't understand how ie works]
The index. php file looks like this:
Include 'list. php'; break; // call list. php when loading index. php.
?>
The outer div in list. php looks like this:
// Some content
?>
After entering localhost/index. php in the ie address bar, the page is displayed. Check the page source file. The problem is probably like this:
This is the div of the outermost layer.
Some content
The problem is that ie omitted the div tag in index. php. That is, the three
Shouldn't the expected results look like this:
It cannot be solved.
------ Solution --------------------
This is related to the rendering of the browser. It actually has nothing to do with php. It is already a client.
------ Solution --------------------
Include 'list. php'; break ;???
Using break in a non-cyclic structure will inevitably lead to a serious error
Therefore, the program will output something uncertain.
------ Solution --------------------
In this case, the code that outputs the outer div may not be executed.
------ Solution --------------------
This has nothing to do with whether it is IE. Isn't Firefox like this?
------ Solution --------------------
If html is not as expected,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.