td可以在td内吗? [英] Can a td be inside a td

查看:272
本文介绍了td可以在td内吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能是一个无意义的问题,我知道我们必须尽可能遵循标准。但是< td> 可以是另一个< td> 的直接孩子,如下所示:

 < td class =parent> 
< td class =child>
<! - 一些信息 - >
< / td>
< / td>

或者必须创建另一个< table> < td> 之前添加一个新的< tr> 标签并成为群集...

解决方案

不直接,但您可以将表放入td中

 < td class =parent> 
< table>< tr>
< td class =child>
<! - 一些信息 - >
< / td>
< / tr>< / table>
< / td>


It may be a nonsense question, and I know we have to follow standards as much as possible. But can <td> be a direct child of another <td>, like this:

<td class="parent">
    <td class="child">
        <!-- Some info -->
    </td>
</td>

Or it's obligatory to create another <table> with a new <tr> before adding the <td>, which can become heavily populated with table tags and become clustered...

解决方案

not directly but you could place table inside td

<td class="parent">
   <table><tr>
    <td class="child">
        <!-- Some info -->
    </td>
   </tr></table>
</td>

这篇关于td可以在td内吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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