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

推荐订阅源

P
Privacy & Cybersecurity Law Blog
人人都是产品经理
人人都是产品经理
The Cloudflare Blog
B
Blog RSS Feed
罗磊的独立博客
V
V2EX
V
Visual Studio Blog
博客园 - 叶小钗
W
WeLiveSecurity
小众软件
小众软件
K
Kaspersky official blog
美团技术团队
雷峰网
雷峰网
阮一峰的网络日志
阮一峰的网络日志
Martin Fowler
Martin Fowler
Recorded Future
Recorded Future
Project Zero
Project Zero
Hugging Face - Blog
Hugging Face - Blog
Engineering at Meta
Engineering at Meta
Security Latest
Security Latest
Microsoft Azure Blog
Microsoft Azure Blog
V
Vulnerabilities – Threatpost
月光博客
月光博客
博客园 - 三生石上(FineUI控件)
Help Net Security
Help Net Security
博客园 - Franky
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
F
Fortinet All Blogs
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Forbes - Security
Forbes - Security
M
MIT News - Artificial intelligence
H
Hacker News: Front Page
大猫的无限游戏
大猫的无限游戏
Vercel News
Vercel News
Spread Privacy
Spread Privacy
The Register - Security
The Register - Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
量子位
Google Online Security Blog
Google Online Security Blog
PCI Perspectives
PCI Perspectives
The Last Watchdog
The Last Watchdog
AI
AI
N
News | PayPal Newsroom
D
DataBreaches.Net
Cloudbric
Cloudbric
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 司徒正美
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Tailwind CSS Blog

博客园 - 日月星尘

转:web开发注意事项 C#中Datatable转Excel 为FreeTextBox添加中文字体 用代码的方式生成Form并提交表单 - 日月星尘 - 博客园 使用Asp.net MVC源代码调试你的应用程序 jquery插件,240个 30个流行的jQuery Plugins jQuery常用技巧 jquery表单验证插件 jquery.form.js 支持文件上传~ 超强1000个jquery极品插件! 生成静态页核心代码 asp.net提高网站性能的方法 25个基于浏览器的HTML在线编辑器集合 SQL Server动态为表添加字段的方法 c#对象初始化顺序 通过/PAE打开Windows 2003/2000的大内存支持 JavaScript 对象设计 ASP.net初学者常用知识 ASP.NET应用程序设计的10大技巧
iframe动适应大小 - 日月星尘 - 博客园
日月星尘 · 2009-12-25 · via 博客园 - 日月星尘

首先在页面中加入

<script type="text/javascript">
    function autofitframe()
    {

    try{

    document.getElementById("mainifr").style.height=mainifr.document.body.scrollHeight;

    }catch(e)

    {

    }

    }
</script>

然后在ifrom进行如下设置就行了,是不是很简单啊?O(∩_∩)O哈哈~

 <td valign="top" style="width: 697px;">
<iframe  id="mainifr" name="mainifr" style="width:100%;" frameborder="0" scrolling="no" onload='autofitframe()';></iframe>
</td>

注意,td中不要设置高度是多少。