Somehow php broke doctype

后端 未结 2 536
礼貌的吻别
礼貌的吻别 2020-12-22 04:36

I created two threads here and here about that internet explorer works in quirks mode and that broke the layout. After a bit of investigation I found that somehow php make s

相关标签:
2条回答
  • 2020-12-22 04:49

    If a browser is treating the two pages differently, then there's some difference between them, even if it's not immediately apparent when you "View Source".

    I recommend using a tool such as Fiddler to look at the actual page content as delivered from the server.


    Edit: You'll find that the "RAW" and "HEX" tabs are more important than "TextView". Start with "Raw" and compare the "Content-Length" header, then look at "HexView" to see what has changed.

    0 讨论(0)
  • 2020-12-22 05:06

    Most likely there is some output going to the browser before the doctype.

    Ensure that:

    • There is no white space or any other kind of data before the <?php opening tags
    • There is no BOM at the beginning if your files are saved using some Unicode encoding

    ...in any of the files that are being parsed to generate your output.

    0 讨论(0)
提交回复
热议问题