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.
The page is very simple here:
http://maishudi.com/test.php
Code:
<table> <tr> <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> </tr> </table>
(source: maishudi.com)
使用两个 td,一个用于输入,一个用于 iframe:
或者根本不使用表格,使用 CSS 定位项目,使用float属性:
使用td标签的valign属性。
.. <td valign="top"> </td>
编辑:
尝试这个,
<table> <tr> <td><input type="text" /></td> <td><iframe scrolling="no" height="21px" frameborder="0" width="62px" marginheight="0" marginwidth="0" src="http://maishudi.com/Server/SecCode.php"> </iframe> </td> </tr> </table>