<!--[if IE 6]>
<script type="text/javascript">
function correctPNG() {
for (var i = 0; i < document.images.length; i++) {
var img = document.images[i];
var imgName = img.src.toUpperCase();
if (imgName.substring(imgName.length - 3, imgName.length) == "PNG") {
var imgID = (img.id) ? "id='" + img.id + "' " : "";
var imgClass = (img.className) ? "class='" + img.className + "' " : "";
var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";
var imgStyle = "display:inline-block;" + img.style.cssText;
if (img.align == "left")
imgStyle = "float:left;" + imgStyle;
if (img.align == "right")
imgStyle = "float:right;" + imgStyle;
if (img.parentElement.href)
imgStyle = "cursor:hand;" + imgStyle;
var strNewHTML = "<span " + imgID + imgClass + imgTitle + "style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";" + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" + "(src='" + img.src + "', sizingMethod='scale');\"></span>";
img.outerHTML = strNewHTML;
i = i - 1;
}
}
}
var reIE = new RegExp("MSIE (\\d+\\.\\d+);");
reIE.test(navigator.userAgent);
var fIEVersion = parseFloat(RegExp["$1"]);
if (fIEVersion < 7) {
window.attachEvent("onload", correctPNG);
}
</script>
<![endif]-->

最新文章

  1. 转载:Android自动化测试- 自动获取短信验证码
  2. Android消息机制源码分析
  3. STM32F103ZET6 用定时器级联方式输出特定数目的PWM(转载)
  4. chrome inspect 远程调测:Chrome on Android之一 普通调试
  5. Git CMD - remote: Manage set of tracked repositories
  6. 爆炸!iOS资源大礼包(持续更新...)
  7. asp.net2.0安全性(3)--验证与授权--转载来自车老师
  8. perl多线程使用
  9. Linux 将本地文件上传Linux服务器, 即ssh 命令上传本地文件
  10. rgba 和 IE 的 filter数值转换
  11. Python selenium巧用Javascript脚本注入解决按钮点选问题
  12. f-stack nginx多进程报错 primary worker process failed to initialize
  13. 十余年软件开发经历,经验总结和程序一览(涉及Socket、WPF、vc++、CAD、图像、GIS)
  14. ProxySQL+MGR实现读写分离和主节点故障无感知切换 - 完整操作记录
  15. 细菌多位点序列分型(Multilocus sequence typing,MLST)的原理及分型方法
  16. gogs wekan 集成试用
  17. ssh-key的复制
  18. express 项目前后台公用样式 /static/js/bootstrap.min.js
  19. 【OpenCV】SIFT原理与源码分析:关键点描述
  20. Object-C中的类-类的声明

热门文章

  1. ora-28056错误解决
  2. | unauthenticated user (1130, &quot;Host &#39;127.0.0.1&#39; is not allowed to connect to this MySQL server&quot;)
  3. tomcat设置编码格式utf8
  4. Strongly connected---hdu4635(强联通分量)
  5. How Instagram Feeds Work: Celery and RabbitMQ(转)
  6. mapxtreme java学习之路(1)——.dwg转.tab再转.gst详细教程
  7. mysql慢日志
  8. linux C 程序内存布局
  9. c++语言中的遍历
  10. 如何线程安全的使用HashMap