什么时候<td valign ="top">不起作用?

omg*_*omg 4 css html-table valign

你有没有得出这个结论?

现在我遇到了一个,非常奇怪,不知道为什么.

我的代码:

<td valign="top">
    <input type="text" />
    <iframe scrolling="no" height="21px" frameborder="0" width="62px" marginheight="0" marginwidth="0" src="Server/SecCode.php">
    </iframe>
</td>
Run Code Online (Sandbox Code Playgroud)

但事实证明,"输入"是指向底部,而"iframe"指向顶部.

小智 8

当我添加css代码时,我经历了类似的事情

<td style=" vertical-align: top;" >
Run Code Online (Sandbox Code Playgroud)

在td标签内手动更正了我的问题.