如您提到的,IE8支持內聯塊,但它需要在HTML文檔開始時進行適當的Doctype聲明。沒有它,IE8的渲染引擎可能會恢復為怪異模式,從而導致您的CSS行為不同。要解決此問題,請在html標籤之前嘗試在文檔的第一行中添加此行:[&& && && && && &&華型html public public' - // w3c // dtd xhtml 1.0 transitional // en transitional // en en'' “ http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> [&&&&&&&&&& && && && && && && && && && && && && && && && && && && && && && && gribatity re n iT rendeption youse yousper youspripe。內聯塊CSS應該按預期的IE8工作。此修復程序使您可以將元素內聯對齊,而無需訴諸浮點或額外的標記,即使在較舊的瀏覽器中也可以提供乾淨有效的佈局。