asp.net 在页面中加入Iframe怎么不能设置高度和宽度 <IFRAME id=frmRight style="Z-INDEX: 1; VISIBILITY: inherit; WIDTH: 100%; HEIGHT: 100%" name=frmRight src="" frameBorder=0></IFRAME>代码在上卖弄,怎么就是无效呢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在asp中时好用的,为什么一放到asp.net页面中就无效了呢 去掉页面上的:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">试试看 <iframe width="100%" align="center" height="200" id="frame" name="frame" frameborder="0" scrolling="no" onload="Javascript:SetWinHeight(this)"></iframe> function SetWinHeight(obj) { var win = obj; if (document.getElementById) { if (win && !window.opera) { if (win.contentDocument && win.contentDocument.body.offsetHeight) win.height = win.contentDocument.body.offsetHeight; else if (win.Document && win.Document.body.scrollHeight) win.height = win.Document.body.scrollHeight; } } } 怎么样把字符串代码反射执行,如下代码 请教一个SqlDataReader关闭的疑问 无法生成临时类(result=1) 求ip地址及网址(二者同时可以,别的形式不行)的正则表达式 用http-equiv="refresh"刷新自动跳转网页,能不能加个提示, 选“是”就跳转,选“否”不跳转,能实现吗? asp.net (C#) 如何发布.net网站? --------如何用JavaScript设置打印机的纸张宽度和高度---------快疯了问了好久了---谢谢 急问:关于移动控件的位置 火来结贴 请教一个问题,, 求高手写个 SQL SERVER 的存储过程。 c#出现错误
试试看
function SetWinHeight(obj) {
var win = obj;
if (document.getElementById) {
if (win && !window.opera) {
if (win.contentDocument && win.contentDocument.body.offsetHeight)
win.height = win.contentDocument.body.offsetHeight;
else if (win.Document && win.Document.body.scrollHeight)
win.height = win.Document.body.scrollHeight;
}
}
}