English 中文(简体)
超文本:无上限的拖车的宽度?
原标题:HTML: Width for a td independent of the upper tr?
  • 时间:2011-02-26 17:06:48
  •  标签:
  • html

如果我有下表,我就没有确定一个单一要素的特别宽度。 这是可能的吗?

例如,我曾尝试过:

<table border="1">
    <tr>
        <td>Bla</td>
        <td>_____________________________________________________</td>
        <td>Bla2</td>
    </tr>
    <tr>
        <td>Blub</td>
        <td style="width: 100px;">Bli</td>
        <td>Hello</td>
    </tr>
</table>
最佳回答

这是可能的吗?

实际情况并非如此。 现有的唯一东西是<条码>栏/条码>和<条码>,使电池横跨两栏,如:

<table border="1">
    <tr>
        <td>Bla</td>
        <td>_____________________________________________________</td>
        <td>Bla2</td>
    </tr>
    <tr>
        <td colspan="2">Blub Bli - I will span across the whole large line!</td>
        <td>Hello</td>
    </tr>
</table>

但是,你想要的——完全灵活地在牢房里——只能通过两个单独的表格来实现。

问题回答

由于你没有明确地指出过宽,你的其他TD公司也将是最大的:

<td>_____________________________________________________</td>

样本是<代码>table tag,因为您没有为此设定宽恕。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签