新手请教:如何控制单元格高度

phara 2006-03-23 11:48:09
搞了好久,还是不知道怎么怎么把右边空白区域的单元格变小,我想把那块固定高度(200px),但是始终没有变化
我不需要在这个页面上装很多字;付上htm代码,请各位帮忙 感谢!
<html>
<head>
<title>123</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<link href="css.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (layout.psd) -->
<table width="760" height="500" border="0" align="center" cellpadding="0" cellspacing="0" id="__01">

<tr>
<td height="62" colspan="3">
<img src="img/main/toplogo.jpg" width="760" height="62" alt=""></td>
</tr>
<tr>
<td colspan="3" background="img/main/middle2.jpg" height="157" ><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="760" height="157">
<param name="movie" value="img/main/banner.swf">
<param name="quality" value="high">
<param name="wmode" value="transparent">
<embed src="img/main/banner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="760" height="157"></embed>
</object></td>

</tr>
<tr>
<td height="29" colspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#104E8B">
<tr class="daohangtxt">
<td onmouseover="this.bgColor='#1C86EE'" onmouseout="this.bgColor='#104E8B'" align="center"width="900" height="26"><span class="style1">公司简介</span></td>
<td onmouseover="this.bgColor='#1C86EE'" onmouseout="this.bgColor='#104E8B'" align="center"width="900" height="26"><span class="style1">服务项目</span></td>
<td onmouseover="this.bgColor='#1C86EE'" onmouseout="this.bgColor='#104E8B'" align="center"width="900" height="26"><span class="style1">核心团队</span></td>
<td onmouseover="this.bgColor='#1C86EE'" onmouseout="this.bgColor='#104E8B'" align="center"width="900" height="26"><span class="style1">优势介绍</span></td>
<td onmouseover="this.bgColor='#1C86EE'" onmouseout="this.bgColor='#104E8B'" align="center"width="900" height="26"><span class="style1">成功案例</span></td>
<td onmouseover="this.bgColor='#1C86EE'" onmouseout="this.bgColor='#104E8B'" align="center"width="900" height="26"><span class="style1">在线咨询</span></td>
<td onmouseover="this.bgColor='#1C86EE'" onmouseout="this.bgColor='#104E8B'" align="center"width="900" height="26"><span class="style1">联系我们</span></td>
<td onmouseover="this.bgColor='#1C86EE'" onmouseout="this.bgColor='#104E8B'" align="center" width="900" height="26"><span class="style1">人才招聘</span></td>
</tr>
</table></td>
</tr>
<tr>
<td width="215" height="35" align="center" background="img/main/Evaluate.jpg" class="normaltext" >客户评价 </td>
<td width="512" valign="top" ><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="512" height="35" valign="top"><img src="img/main/about.jpg" width="150" height="37"><img src="img/main/about_bg.jpg" width="241" height="7"></td>
</tr>
</table></td>
<td width="33" bgcolor="#F3F2F2"></td>
</tr>
<tr>
<td height="20" bgcolor="#F3F2F2"><marquee direction="up" onMouseOver="stop()" onMouseOut="start()" scrollamount="5" scrolldelay="200" >
客户评价<br>
客户评价<br>
</marquee></td>
<td rowspan="3" valign="top" height="161" ><table width="100%" border="0" cellpadding="0" cellspacing="0" height="161">
<tr >
<td width="512" valign="top" class="normaltext"> </td>
</tr>
</table></td>
<td bgcolor="#F3F2F2"></td>
</tr>
<tr>
<td height="35" align="center" background="img/main/Evaluate.jpg" class="normaltext" >公司动态</td>
<td bgcolor="#F3F2F2"></td>
</tr>
<tr>
<td height="20" bgcolor="#F3F2F2">
<marquee direction="up" onMouseOver="stop()" onMouseOut="start()" scrollamount="5" scrolldelay="200" >
公司动态<br>
公司动态<br>
</marquee>
</td>
<td bgcolor="#F3F2F2"></td>
</tr>
<tr>
<td height="15"><img src="img/main/layout_10.gif" width="215" height="15" alt=""></td>
<td colspan="2"><img src="img/main/layout_11.gif" width="545" height="15" alt=""></td>
</tr>
<tr>
<td height="41" colspan="3"><img src="img/main/layout_12.gif" width="760" height="41" alt=""></td>
</tr>
</table>
<!-- End ImageReady Slices -->
</body>
</html>

...全文
351 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
phara 2006-03-24
  • 打赏
  • 举报
回复
问题找到了 是麻雀的问题 把麻雀的高度固定了就ok了

还是谢谢唯一的回复者,sibang(冯健) 这是我第一次发贴问问题
把分都给你了
phara 2006-03-24
  • 打赏
  • 举报
回复
各位 帮帮忙吧 我在这里卡了很久了 thm不熟
phara 2006-03-24
  • 打赏
  • 举报
回复
谢谢sibang(冯健) but...不会是我浏览器的原因吧 貌似还是不能固定啊
能直接告诉我要改哪里吗?
www_7di_net 2006-03-24
  • 打赏
  • 举报
回复
你使用dw就可以很轻松的固定了,如果用frontpage那就难了
www_7di_net 2006-03-24
  • 打赏
  • 举报
回复
<html>
<head>
<title>123</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<link href="css.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (layout.psd) -->
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="760" height="157">
<param name="movie" value="img/main/banner.swf">
<param name="quality" value="high">
<param name="wmode" value="transparent">
<embed src="img/main/banner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="760" height="157"></embed>
</object></td>
</tr>
</table>
<table width="760" height="500" border="0" align="center" cellpadding="0" cellspacing="0" id="__01">

<tr>
<td height="62" colspan="3">
<img src="img/main/toplogo.jpg" width="760" height="62" alt=""></td>
</tr>
<tr>
<td colspan="3" background="img/main/middle2.jpg" height="157" > </td>
</tr>
<tr>
<td height="29" colspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#104E8B">
<tr class="daohangtxt">
<td onMouseOver="this.bgColor='#1C86EE'" onMouseOut="this.bgColor='#104E8B'" align="center"width="900" height="26"><span class="style1">公司简介</span></td>
<td onMouseOver="this.bgColor='#1C86EE'" onMouseOut="this.bgColor='#104E8B'" align="center"width="900" height="26"><span class="style1">服务项目</span></td>
<td onMouseOver="this.bgColor='#1C86EE'" onMouseOut="this.bgColor='#104E8B'" align="center"width="900" height="26"><span class="style1">核心团队</span></td>
<td onMouseOver="this.bgColor='#1C86EE'" onMouseOut="this.bgColor='#104E8B'" align="center"width="900" height="26"><span class="style1">优势介绍</span></td>
<td onMouseOver="this.bgColor='#1C86EE'" onMouseOut="this.bgColor='#104E8B'" align="center"width="900" height="26"><span class="style1">成功案例</span></td>
<td onMouseOver="this.bgColor='#1C86EE'" onMouseOut="this.bgColor='#104E8B'" align="center"width="900" height="26"><span class="style1">在线咨询</span></td>
<td onMouseOver="this.bgColor='#1C86EE'" onMouseOut="this.bgColor='#104E8B'" align="center"width="900" height="26"><span class="style1">联系我们</span></td>
<td onMouseOver="this.bgColor='#1C86EE'" onMouseOut="this.bgColor='#104E8B'" align="center" width="900" height="26"><span class="style1">人才招聘</span></td>
</tr>
</table></td>
</tr>
<tr>
<td width="215" height="35" align="center" background="img/main/Evaluate.jpg" class="normaltext" >客户评价 </td>
<td width="512" valign="top" ><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="512" height="35" valign="top"><img src="img/main/about.jpg" width="150" height="37"><img src="img/main/about_bg.jpg" width="241" height="7"></td>
</tr>
</table></td>
<td width="10" rowspan="4" bgcolor="#F3F2F2"></td>
</tr>
<tr>
<td height="161" bgcolor="#F3F2F2"><marquee direction="up" onMouseOver="stop()" onMouseOut="start()" scrollamount="5" scrolldelay="200" >
客户评价<br>
客户评价<br>
</marquee></td>
<td rowspan="3" valign="top" height="161" ><table width="100%" border="0" cellpadding="0" cellspacing="0" height="161">
<tr >
<td width="512" valign="top" class="normaltext"> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="35" align="center" background="img/main/Evaluate.jpg" class="normaltext" >公司动态</td>
</tr>
<tr>
<td height="20" bgcolor="#F3F2F2">
<marquee direction="up" onMouseOver="stop()" onMouseOut="start()" scrollamount="5" scrolldelay="200" >
公司动态<br>
公司动态<br>
</marquee></td>
</tr>
<tr>
<td height="15"><img src="img/main/layout_10.gif" width="215" height="15" alt=""></td>
<td colspan="2"><img src="img/main/layout_11.gif" width="545" height="15" alt=""></td>
</tr>
<tr>
<td height="41" colspan="3"><img src="img/main/layout_12.gif" width="760" height="41" alt=""></td>
</tr>
</table>
<!-- End ImageReady Slices -->
</body>
</html>


phara 2006-03-23
  • 打赏
  • 举报
回复
soy,实在比较菜 so...麻烦各位了

61,112

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧