Problem with whitespace before doctype

后端 未结 8 1756
迷失自我
迷失自我 2021-01-19 00:45

I got some strange problem where i have 2 copies of same website in 2 different folders. In one of those 2 copies has whitespace before doctype declaration so i have problem

8条回答
  •  情话喂你
    2021-01-19 01:04

    I just spent a day solving this problem where my libraries worked fine on static pages but under a dynamic system with a master script at the start (apache mod_write rewriting all to master script) the browser flipped into backward compat mode (js: alert(document.compatMode()) ) and distorted my styling. All my include files were ended properly and no echos, etc.. The problem? A blank line above the opening

提交回复
热议问题