ie6下iframe中里使用target="_top" 链接失效
来源:互联网 发布:学跳舞的软件 编辑:程序博客网 时间:2024/05/18 02:40
http://blog.csdn.net/hfq_1991/article/details/7408391
ie6 bug target="_top" 不起作用(原因是跨域,ie6会更加严格,当都添加可信任站点时问题解决。)
html
1
2
3
4
5
6
<!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/DTD/strict.dtd"
>
<html>
<body>
<iframe src=
"http://bemmu4.appspot.com/static/iframe.html"
/>
</body>
</html>
iframe
1
2
3
4
5
6
<!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/DTD/strict.dtd"
>
<html>
<body>
<a href=
"http://www.google.com"
target=
"_top"
>Let's go to Google!</a>
</body>
</html>
解决方法:
1
2
3
4
5
6
<!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/DTD/strict.dtd"
>
<html>
<body>
<a href=
"http://www.google.com"
target=
"_top"
onclick=
"javascript:if(window.top){window.top.location='http://www.google.com';}"
>Let's go to Google!</a>
</body>
</html>
0 0
- ie6下iframe中里使用target="_top" 链接失效
- ie6下iframe中里使用target="_top" 链接失效
- 链接里面 target属性里 _blank _parent _self _top _search 五者的区别
- html 中 target="_self" target="_parent" target="_top"
- 在网页设计中:target="_self"和target="_parent"以及target="_top"各表示什么?
- target属性里_blank _self _top _parent区别
- HTML中target属性中_blank、_self、_parent、_top含义
- HTML的target属性中_blank、_self、_parent、_top含义
- HTML的target属性中_blank、_self、_parent、_top含义
- IE6下链接a的onclick事件失效
- 解决IE6下height=0失效
- IE6下hover失效
- IE6 下 iframe 空白
- IE6 链接失效 <a>失效 不能点击
- ie6中css失效
- netscape 中使用iframe,对form中target的使用
- IE6.O下使用iframe出现横向滚动条问题
- IE6下overflow:auto失效
- http://www.blogjava.net/easywu/archive/2013/10/17/405386.html
- java 将pdf多页转换成一张图片,支持指定页数
- 《剑指Offer》面试题25:二叉树中和为某一值的路径
- 10个Eclipse调试技巧
- Unity2d 骨骼动画3:介绍Mecanim和脚本
- ie6下iframe中里使用target="_top" 链接失效
- hbase为避免热点,预先创建分区region
- input in python
- say goodbye to “hi,baidu”
- 简述word转换成pdf的过程
- oracle sqlplus登录问题以及odbc连接问题
- 如何快速正确的安装 Ruby, Rails 运行环境
- ios的 定位 及高德地图定位
- HDU 1004 Let the Balloon Rise