Tip: you can modify some code before running
<html> <head> <title>Judge the ie version and prompt to upgrade the browser</title> </head> <style type="text/css"># Ie6-warning {background: rgb (255,255,225) url ("/upload/201006/20100628012515690 .gif") no-repeat scroll 3px center; position: absolute; top: 0; left: 0; font-size: 12px; color: #333; width: 97%; padding: 2px 15px 2px 23px; text-align: left ;}# ie6-warning a {text-decoration: none ;}</style> <body> <!--[if lte ie 6]> <div id="ie6-warning">您正在使用 internet explorer 6,在本页面的显示效果可能有差异。建议您升级到 internet explorer 8 或以下浏览器: firefox / chrome / safari / opera </div> <script type="text/javascript"> function position_fixed(el, eltop, elleft){ // check if this is ie6 if(!window.xmlhttprequest) window.onscroll = function(){ el.style.top = (document.documentelement.scrolltop + eltop)+"px"; el.style.left = (document.documentelement.scrollleft + elleft)+"px"; } else el.style.position = "fixed"; } position_fixed(document.getelementbyid("ie6-warning"),0, 0); </script> <![endif]--> </body> </html>
Tip: you can modify some code before running