I really don't know how ie parses php.

Source: Internet
Author: User
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; & lt; divclass & quot; content_primary & ie doesn't really understand how php works.
[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 p 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 outermost p
Some content
The problem is that ie omitted the p 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 p 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,

This is not an issue with ie.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.