In order to fix an IE9 bug I had to put the 'DOCTYPE' declaration at the top of the page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&_Stack Overflow中文网
Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"& 问问题
解决方案是从 require_once 'somefile.php' 切换;
至
require_once('somefile.php');
虽然 Firefox 和 Android 浏览器对第一种样式很好,但 IE9 有一个怪癖:它会忽略 div 的 inline-block 样式。