惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Proofpoint News Feed
T
The Blog of Author Tim Ferriss
aimingoo的专栏
aimingoo的专栏
M
MIT News - Artificial intelligence
N
Netflix TechBlog - Medium
Y
Y Combinator Blog
B
Blog RSS Feed
H
Help Net Security
Blog — PlanetScale
Blog — PlanetScale
Vercel News
Vercel News
Google DeepMind News
Google DeepMind News
Microsoft Security Blog
Microsoft Security Blog
G
Google Developers Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 司徒正美
L
LangChain Blog
IT之家
IT之家
F
Fortinet All Blogs
V
V2EX
C
Check Point Blog
The Cloudflare Blog
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
A
About on SuperTechFans

博客园 - 拖拉机大叔

个人犯的一个golang routine错误 .NET实现自动编译 做为一个.net码农,打开公司的一个项目,大叔我哭了 Yahoo!团队实践分享:网站性能优化的35条黄金守则 [转载]高性能web开发 Sql Server2005 利用XML一次更新多条记录 利用存储过程导出数据到sql脚本 SQL大全2 SQL大全 文件以二进制流保存到数据库及下载(转载) DataList中TextBox的OnTextChange事件 - 拖拉机大叔 - 博客园 CommunityServer 2.1初步学习 TreeView高效绑定数据 Javascript常用代码 - 拖拉机大叔 - 博客园 Web页面打印及GridView导出到Excel GridView编辑、删除为英文 SqlServer一些用法 压缩图片上传到数据库 移除DataTable中的行
如何让iframe背景色透明,以及loation.href不起作用 - 拖拉机...
拖拉机大叔 · 2009-07-06 · via 博客园 - 拖拉机大叔

<iframe src="newscontent.jsp?NID=<%=newsid%>" width="100%" height="360" align="center" scrolling="auto" frameborder="0" style="filter:chroma(color=#ffffff)" >
                  </iframe>

<body style="background-color:transparent" >

在页面上用window.location.href='';进行跳转的时候,有时候不起作用,

找了好长时间,发现有个方法可解决

设置一个0秒的定时器: setTimeout(function(){ window.location ='http://www.cnblogs.com';}, 0);