<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
我的jsp里面有这么一行代码,如上,,有了这行代码以后,<table height="100%"></table> 就没有效果,如果我要是把这行代码去掉后,这个页面的有些效果就不是我想要的呢? new Ext.TabPanel({height:0});就没有效果了,效果图如下
我的jsp里面有这么一行代码,如上,,有了这行代码以后,<table height="100%"></table> 就没有效果,如果我要是把这行代码去掉后,这个页面的有些效果就不是我想要的呢? new Ext.TabPanel({height:0});就没有效果了,效果图如下
解决方案 »
- myeclpse6.5 和 sql server2005问题 大侠快来看看啊~~~~~~~~
- ibatis是否可以共通化?
- Ext 时间控件读取的简单问题
- Eclipse开发JSP问题,怎样达到随意拷贝的结果?
- 哪有javascript的帮助文档啊。
- 急--在线等,请高手帮忙
- 3 个接口分别是 Filter、FilterChain 和 FilterConfig。的问题,谢谢。
- 谁能给说一下ejb那套体系中通过实体bean读数据比微软ado那种直接sql数据好在哪里
- 登陆问题
- Tomcat配置SSL时出现的问题
- 怎样对formbean反向填充?
- 急切 !!many-to-many 单向删除的问题 !!求助!!!!!!
这句话只表示支持w3c规范,必须要按照这个规范来进行编写,否则不支持.
new Ext.TabPanel({height:0});
这一句话改成: new Ext.TabPanel({height:0,renderTo:Ext.getBody()});
忘记渲染了吧..
html, body { height:100%; }
</style>
<body style="height:100%">
<table width="100%" border="1" style="height: 100%" cellspacing="0" cellpadding="0">
<tr style="height:99px">
<td colspan="2" height="99">top</td>
</tr>
<tr style="height:100%">
<td style="width:220px" align="left"><table height="100%"><tr><td>这里的table高度就没有用了</td></tr></table> left</td>
<td align="left"> center</td>
</tr>
</table>
这个
html, body { height:100%; }
</style>
你们难道没有明白我意思吗? 这个这对整个页面有用,如果这个页面还包含table的话,table的高度100%还是没有用的
改成
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
这个是可以的,如果你换成这个就不行了
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><table width="100%" border="1" style="height: 100%" cellspacing="0" cellpadding="0">
<tr >
<td colspan="2" height="99">top</td>
</tr>
<tr >
<td style="width:220px" align="left" height="100%" width="100%">
<table height="100%" border="1"><!--这是里的高度不能100%-->
<tr>
<td>left</td>
</tr>
</table>
</td>
<td align="left" height="100%">center</td>
</tr>
</table>
<table width="100%" border="1" style="height: 100%" cellspacing="0" cellpadding="0">
<tr >
<td colspan="2" height="99">top</td>
</tr>
<tr >
<td style="width:220px" align="left" height="100%" width="100%">
<table height="100%" border="1"><!--这是里的高度不能不能100%-->
<tr>
<td>left</td>
</tr>
</table>
</td>
<td align="left" height="100%">center</td>
</tr>
</table>
你们先跑下这段代码就知道什么情况了