04 2013 档案
摘要:JS代码:function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.{var arVersion = navigator.appVersion.split("MSIE")var version = parseFloat(arVersion[1])if ((version >= 5.5) && (document.body.filters)) {for(var j=0; j<document.images.length; j++){var img
阅读全文
摘要:废话不多说,先看一下下面这段代码:<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>IE6 position:fixed bug</title> <style> *{padding:0;margin:0} p{height:2000px} #gs{border:1px solid #000;position:f
阅读全文
摘要:一:一种方法 使用HTML的锚标记最简单了,但是唯一的缺点就是样式不怎么样,会显示这个锚标记。 <a name="top" id="top"></a> 放置位置在<body>标签之后随便找个地方放都可以,只要靠近顶部即可。页面底部放置: <a href="#top" target="_self">返
阅读全文
摘要:以前的兼容.transparent_class {-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; /* ie8 */filter:alpha(opacity=50); /* ie5-7 */ -moz-opacity:0.5; /* old mozilla browser like netscape */ -khtml-opacity: 0.5; /* for really really old safari */opacity: 0.5; /* css standard, currentl
阅读全文