Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I've tried putting valign="top" as attribute of <td> but in vain.
<td>
<tr> <td> <span class="validationInline">*</span> Security Code: </td> <td valign="top"> <input type="text" /> <iframe scrolling="no" height="21px" frameborder="0" width="62px" marginheight="0" marginwidth="0" src="http://google.com"></iframe> </td> </tr>
It seems that <input> aligns itself to the buttom,while <iframe> to the top.
<input>
<iframe>
あなたの説明から、セルは上に整列しているように見えますが、入力/ iframe は下で互いに整列しています。垂直方向の配置は、通常、兄弟要素にのみ適用されます。
vertical-align:top入力と iframe の両方でCSS プロパティを設定する必要があります。
vertical-align:top
<td valign="top"> <input style="vertical-align:top" type="text" /> <iframe style="vertical-align:top" scrolling="no" height="18" frameborder="0" width="62" marginheight="0" marginwidth="0" src="http://google.com"> </iframe> </td>
<td valign="top"><input type="text" /> <iframe scrolling="no" height="18" frameborder="0" width="62" marginheight="0" marginwidth="0" src="http://google.com"> </iframe></td>
上記は私にとってはうまくいきます...コンテンツをセルの上部に揃えます。これはあなたが求めているものですか?