-
IE6 winow.location.href无法跳转
<script type="text/javascript"> function goUrl(x) { window.location.href=x; } </script> <a href="javascript:;" onclick="javascript:goUrl('http://www.x.com');">跳转1</a> <a href="javascript:void(0);" onclick="javascript:goUrl('http://www.x.com');">跳转2</a> <a href="javascript:void(0);" onclick="javascript:goUrl('http://www.x.com');return false;">跳转3</a> <a href="#" onclick="javascript:goUrl('http://www.x.com');">跳转4</a> <a href="###" onclick="javascript:goUrl('http://www.x.com');">跳转5</a>跳转1和2在IE6环境下无效,3、4、5在IE6,IE7,Firefox3.01下测试均能 通过 跳转4和5最简洁。0
-
Iframe中嵌入SWF在IE6下花屏问题解决
在ie6中嵌入iframe有时候会出现花屏的状况不知道该怎么解决?
0
-
ie6下如何实现Fixed Position?
ie6下如何实现Fixed Position?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> ...... <style type="text/css"> #fixed{position:fixed;top:5em;right:0;......} 针对IE7、Opera、Firefox一行搞定 </style> IE6中利用容器对溢出内容的处理方式来实现的 <!--[if IE 6]> 利用IE独有的条件语句可以针对不同的IE版本精确设置,同时避免了这些代码被其他浏览器读到 <style type="text/css"> html{overflow:hidden;} body{height:100%;overflow:auto;} #fixed{position:absolute;right:17px;} fixed元素的绝对位置是相对于HTML元素来说,而滚动条是body元素的,这是设置right:17px的原因 </style> <![endif]--> <!--[if lt IE 6]> <style type="text/css"> #fixed{position:absolute;top:expression(eval(document.body.scrollTop + 50));} </style> <![endif]--> </head> <body> <div id="wrapper"> ...... </div> <div id="fixed" style="height:800px"><h2>{position:fixed}</h2></div> </body> </html>0