HTML5兼容IE的寫法

2023-01-20    分類: 網(wǎng)站建設(shè)

> > <metahttp-equiv=”X-UA-Compatible” content=”IE=8″ /> > > <metahttp-equiv=”X-UA-Compatible” content=”IE=7″ /> > > <metahttp-equiv=”X-UA-Compatible” content=”IE=6″ /> >

關(guān)于X-UA-Compatible

目前絕大多數(shù)網(wǎng)站制作(www.muchs.cn)都用

<metahttp-equiv="X-UA-Compatible"content="IE=EmulateIE7">

來(lái)作為IE8的兼容方法,雖然微軟將IE向標(biāo)準(zhǔn)邁進(jìn)了一大步,而事實(shí)上IE8還存在一系列渲染的奇怪現(xiàn)象是不爭(zhēng)的事實(shí)。

誰(shuí)讓IE6那么多呢,或許2014年以后我們可以有更多的時(shí)間去關(guān)心IE8,而不是IE6或者IE7。

在X-UA-Compatible中可用的方法有:

<metahttp-equiv="X-UA-Compatible"content="IE=5"> <metahttp-equiv="X-UA-Compatible"content="IE=7"> <metahttp-equiv="X-UA-Compatible"content="IE=8"> <metahttp-equiv="X-UA-Compatible"content="IE=edge">

其中最后一行是永遠(yuǎn)以最新的IE版本模式來(lái)顯示網(wǎng)頁(yè)的。

另外加上

<metahttp-equiv="X-UA-Compatible"content="IE=EmulateIE7"> <metahttp-equiv="X-UA-Compatible"content="IE=EmulateIE8">

而使用,Emulate模式后則更重視

所以目前來(lái)說(shuō)還是以

<metahttp-equiv="X-UA-Compatible"content="IE=EmulateIE7">

為選。

微軟自己創(chuàng)下的罪孽讓他自己去掃吧。
本文發(fā)布于成都網(wǎng)站制作公司創(chuàng)新互聯(lián)http://www.muchs.cn/

文章名稱:HTML5兼容IE的寫法
文章路徑:http://www.muchs.cn/news23/231223.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站策劃、用戶體驗(yàn)網(wǎng)站改版、做網(wǎng)站商城網(wǎng)站、移動(dòng)網(wǎng)站建設(shè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

手機(jī)網(wǎng)站建設(shè)