瀏覽器更新換代越來越快了,網頁不兼容現象自然也困擾着許多站長們,一句代碼解決兼容性問題。找到</head>標籤,把下面一句代碼加到CSS代碼之前。
<meta. http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
也就是打開網站時首先加載CSS兼容代碼,然後讀取你的CSS樣式表,這樣才能解決問題的。
1.<html xmlns="http://www.w3.org/1999/xhtml"> 2.<head> 3.<meta. http-equiv="Content-Type" content="text/html; charset=gb2312" /> 4.<meta. http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> 5.<link href="style.css" rel="stylesheet" type="text/css" /> 6.</head> 還等什麼,馬上去試試吧?
文章來自全球站長之家(www.dosxp.com):轉載請註明!