[英]Div is not centered in full width page header on IE8 only
一種可能的解決方案是使用HTML5 doctype <!DOCTYPE html>
。 我最近有這樣的問題,這解決了我。
您獲得了特定於IE的樣式,將該標題轉換為內聯塊:
<!--[if gte IE 7.0]>
<style type="text/css">
.clearfix {display: inline-block;}
</style>
<![endif]-->
去掉 。 #ja-header
clearfix
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.