Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/84.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 内容更改时如何更改行高?_Html_Asp.net_Html Table - Fatal编程技术网

Html 内容更改时如何更改行高?

Html 内容更改时如何更改行高?,html,asp.net,html-table,Html,Asp.net,Html Table,我有一个HTML表格,有4行 行的高度为10%35%45%10% 当我将内容放在具有45%表格高度大小的行中时,如果内容高度较大,则会降低其他行的高度以显示内容,并且所有事情都出错,我应该怎么做? 可以只增加那一排的高度吗? 如果页面大小增加,这并不重要 <html> <head runat="server"> <title> Kut Sharing</title> </head> <body > <

我有一个HTML表格,有4行 行的高度为10%35%45%10% 当我将内容放在具有45%表格高度大小的行中时,如果内容高度较大,则会降低其他行的高度以显示内容,并且所有事情都出错,我应该怎么做? 可以只增加那一排的高度吗? 如果页面大小增加,这并不重要

<html>
<head runat="server">
    <title> Kut Sharing</title>
     </head>
<body >
<div>
    <form id="form1" runat="server">
<table width="100%"   style="height:100%" border="0">
  <tr style="height:10%;background-image:url(Photos/header.png)"" >
     <td>
    <table width="100%" style=" height:100%" border="0">
  <tr>
    <td  style="width:12%; background-image:url(Photos/header2.gif)">&nbsp;</td>
    <td>
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder></td>
  </tr>
</table>
</td>
  </tr>
  <tr style="height:35%; background-image:url(Photos/bluebox.png)"">
     <td>
      <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
    </asp:ContentPlaceHolder>
      </td>
  </tr>

  <tr style="height:45%;">
    <td>
         <asp:ContentPlaceHolder  id="ContentPlaceHolder2" runat="server">

    </asp:ContentPlaceHolder>
        <br />
        <br />

    </td>

  </tr>
  <tr style="height:10%; background-image:url(Photos/footerBg.png)"">
    <td>&nbsp;</td>
  </tr>
</table>
    </form>
    </div>
</body>
</html>

库特分享



在这种情况下,不要用百分比表示身高。

在这种情况下,不要用百分比表示身高。

为什么要在行上设置高度?让表格自然流动不是更好吗?@isherwood因为第一行是我的标题,我希望被固定。那么为什么不在第一行的单元格上设置高度?为什么要在行上设置高度?让桌子自然流动不是更好吗?@isherwood因为第一行是我的标题,我想被固定。那么为什么不在第一行的单元格上设置高度呢?