如何做< table>与< div>标签 [英] How to do a <table> with <div> tag

查看:104
本文介绍了如何做< table>与< div>标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试尽可能用< div> s替换< table> s。

但是,我无法弄清楚如何执行以下操作?


< table>

< tr>

< td valign =" top" width =" 100%">一些将拉伸的数据< / td>

< td valign =" top" width =" 300">一些不会''''的数据< / td>

< / tr>

< / table> ;


任何人?


TIA,

Toby Austin

I''m trying to replace <table>s with <div>s as much as possible.
However, I can''t figure out how to do the following?

<table>
<tr>
<td valign="top" width="100%">some data that will ''stretch''</td>
<td valign="top" width="300">some data that won''t ''stetch''</td>
</tr>
</table>

Anyone?

TIA,
Toby Austin

推荐答案

bo *********** ***@hotmail.com (Toby Austin)写道:
bo**************@hotmail.com (Toby Austin) wrote:
我正在尝试用< div> s替换< table> s可能。
但是,我无法弄清楚如何做以下事情?

< table>
< tr>
< td valign = "顶" width =" 100%">一些将拉伸的数据< / td>
< td valign =" top" width =" 300">某些数据不会'''''< / td>
< / tr>
< / table>
I''m trying to replace <table>s with <div>s as much as possible.
However, I can''t figure out how to do the following?

<table>
<tr>
<td valign="top" width="100%">some data that will ''stretch''</td>
<td valign="top" width="300">some data that won''t ''stetch''</td>
</tr>
</table>



告诉我们你真正要做的事情(使用真实内容)。


-

Spartanicus



Show us what you are actually trying to do (using real content).

--
Spartanicus


bo ********* *****@hotmail.com (Toby Austin)写道:
bo**************@hotmail.com (Toby Austin) wrote:
我正在尝试用< div> s替换< table> s尽管如此。
但是,我无法弄清楚如何做以下事情?

< table>
< tr>
< td VALIGN = QUOT;顶" width =" 100%">一些将拉伸的数据< / td>
< td valign =" top" width =" 300">某些数据不会'''''< / td>
< / tr>
< / table>
I''m trying to replace <table>s with <div>s as much as possible.
However, I can''t figure out how to do the following?

<table>
<tr>
<td valign="top" width="100%">some data that will ''stretch''</td>
<td valign="top" width="300">some data that won''t ''stetch''</td>
</tr>
</table>



告诉我们你真正要做的事情(使用真实内容)。


-

Spartanicus



Show us what you are actually trying to do (using real content).

--
Spartanicus


Toby Austin写道:
Toby Austin wrote:
我正在尝试尽可能用< div> s替换< table> s。
但是,我无法弄清楚如何执行以下操作。

< table>
< tr>
< td valign =" top" width =" 100%">一些将拉伸的数据< / td>
< td valign =" top" width =" 300">某些数据不会'''''< / td>
< / tr>
< / table>
I''m trying to replace <table>s with <div>s as much as possible.
However, I can''t figure out how to do the following.

<table>
<tr>
<td valign="top" width="100%">some data that will ''stretch''</td>
<td valign="top" width="300">some data that won''t ''stetch''</td>
</tr>
</table>



2< div> s。给他们提供诸如内容之类的ID和边栏。


使用{float:right}或{position:absolute}定位侧边栏。它

有{宽度:300px}。


让内容只是在没有定位的情况下流入到位。不要设置

的宽度。


给出内容 a {margin-right:310px}。它的东西将保持清晰

的侧边栏。


-

Barry Pearson
http://www.Barry.Pearson.name/photography/
< a rel =nofollowhref =http://www.BirdsAndAnimals.info/target =_ blank> http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/



2 <div>s. Give them ids such as "content" and "sidebar".

Position the "sidebar", using { float: right } or { position: absolute }. It
has { width: 300px }.

Let the "content" just flow into position without positioning it. Don''t set a
width.

Give the "content" a { margin-right: 310px }. Its stuff will then stay clear
of the sidebar.

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/

这篇关于如何做&lt; table&gt;与&lt; div&gt;标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆