【发布时间】:2012-01-24 04:53:20
【问题描述】:
我有一张桌子,边框宽度是 1。
如何在所有屏幕分辨率下将高度调整为 100 %? 或者使用 jQuery 如何动态更改表格高度?
我是网络应用程序的新手
请帮忙?...
拉杰什
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title></title>
</head>
<script src="./Scripts/jquery-1.4.1.js" type="text/javascript">
jQuery(document).ready(function () {
jQuery('#SprImg').attr("height", jQuery(window).height());
});
</script>
<body>
<table id="Table1" cellpadding="0" cellspacing="0" runat ="server" width="100%" border="0" align="left">
<tr>
<td id="LeftPane" align="left" valign="top" width="175" runat="server" ></td>
<td id="RightPane" align="left" width="*.*" runat="server" valign="top">
<img id="SprImg" src="./Image/login.gif" alt="" />
</td>
</tr>
</table>
【问题讨论】:
-
您能否展示您正在使用的代码并描述(甚至可能使用模拟屏幕截图)您想要实现的目标?从问题上看不清楚。
标签: asp.net