解决方案 »
- 发现一个JS比较牛逼的地方
- 超链接问题 急 急急?????????????????
- ●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●谁能帮忙分析一下Memoize这个函数的执行流程???有点不一般哦~~~~~~~~~~
- 分享一下,虽然不是啥好东西!
- onsubmit事件的问题,蹊跷
- 网站中有很多页面是通过js跳转的,怎样获取js中的URL?
- 帮忙写个显示隐藏的jquery代码 急~
- 为什么在框架中调用HTC组件,会导致HTC组件中的文本框的复制粘贴人及DEL健失效
- -------有什么工具可以指定GIF文件的透明色???---------
- jfinal beelt报错问题,新手求帮助
- JavaScript 字符串解密函数,求相反的加密函数写法
- Array.prototype 数据循环是也会出现,怎么规避
试试这2个:1.假设子页面的结构是这样的
<div style="overflow:hidden">--最外层包含数据的容器
<div style="float:left">--数据
<div>
</div>
2.子页面设置高度 ,采用 em为单位 或者百分比 ,这样就能够自动变化了。
js实现的非跨域的iframe高度自适应(完美兼容IE,FF,Opera)
这个代码是错的啊。报cwincwin未定义,修改之后也没效果。
子页面代码是这样的。<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<script type="text/javascript" language="javascript">
function radioClick(obj) {
var objValue=obj.value;
if(objValue=='1') document.getElementById("tableHide").style.display="";
else document.getElementById("tableHide").style.display="none";
bodyOnload();
} </script>
<title>无标题文档</title>
</head>
<body">
<input name="ra" type="radio" value="0" checked="checked" onclick="radioClick(this)"/>
<input name="ra" type="radio" value="1" onclick="radioClick(this)" />
<table width="200" border="1">
<tr>
<th scope="row"> </th>
<td> </td>
<td> </td>
</tr>
<tr>
<th scope="row"> </th>
<td> </td>
<td> </td>
</tr>
<tr>
<th scope="row"> </th>
<td> </td>
<td> </td>
</tr>
</table>
<br />
<table width="200" border="1" style="display:none" id="tableHide">
<tr>
<th scope="row"> </th>
<td> </td>
<td> </td>
</tr>
<tr>
<th scope="row"> </th>
<td> </td>
<td> </td>
</tr>
<tr>
<th scope="row"> </th>
<td> </td>
<td> </td>
</tr>
<tr>
<th scope="row"> </th>
<td> </td>
<td> </td>
</tr>
<tr>
<th scope="row"> </th>
<td> </td>
<td> </td>
</tr>
<tr>
<th scope="row"> </th>
<td> </td>
<td> </td>
</tr> <tr>
<th scope="row"> </th>
<td> </td>
<td> </td>
</tr>
<tr>
<th scope="row"> </th>
<td> </td>
<td> </td>
</tr>
<tr>
<th scope="row"> </th>
<td> </td>
<td> </td>
</tr> <tr>
<th scope="row"> </th>
<td> </td>
<td> </td>
</tr>
<tr>
<th scope="row"> </th>
<td> </td>
<td> </td>
</tr>
<tr>
<th scope="row"> </th>
<td> </td>
<td> </td>
</tr> <tr>
<th scope="row"> </th>
<td> </td>
<td> </td>
</tr>
<tr>
<th scope="row"> </th>
<td> </td>
<td> </td>
</tr>
<tr>
<th scope="row"> </th>
<td> </td>
<td> </td>
</tr> <tr>
<th scope="row"> </th>
<td> </td>
<td> </td>
</tr>
<tr>
<th scope="row"> </th>
<td> </td>
<td> </td>
</tr>
<tr>
<th scope="row"> </th>
<td> </td>
<td> </td>
</tr>
</table></body>
</html>
多了一个bodyOnload(); 方法。