亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

IE6支持position:fixed完美解決方法

 更新時(shí)間:2008年09月15日 22:56:03   作者:  
IE7已經(jīng)支持position:fixed了,而我們的IE6呢?還繼續(xù)使用js事件?消耗資源,破壞結(jié)構(gòu),畫(huà)面閃耀。
今天去一老外站看到了這他站上的十分平滑但卻沒(méi)有js,好奇,原來(lái)。。巧妙啊,分享下,相對(duì)而言比較節(jié)省資源。但效果好,使用方便,兼顧w3c。哈哈

復(fù)制代碼 代碼如下:

<!-- compliance patch for microsoft browsers -->
<!--[if lt IE 7]><link rel="stylesheet" href="ie-stuff.css" type="text/css" media="screen"/><![endif]-->


ie-stuff.css

復(fù)制代碼 代碼如下:

#footer {
position: absolute;
bottom: auto;
clear: both;
top:e­xpression(eval(document.compatMode &&
document.compatMode=='CSS1Compat') ?
documentElement.scrollTop
+(documentElement.clientHeight-this.clientHeight) - 1
: document.body.scrollTop
+(document.body.clientHeight-this.clientHeight) - 1);
}

相關(guān)文章

最新評(píng)論