在我们的应用程序中,我们有一个表控制表单字段的对齐(坏,我知道,但我不能改变它)。客户报告他们不喜欢Internet Explorer如何在打印预览中插入分页符,使得字段标签(第一个<td>
)位于与字段值不同的页面上(第二个<td
})。
例如,执行以下打印预览并调整大小(例如200%)。
<html>
<head>
<title>Testing</title>
<style>
td {
border: 1px solid black;
}
</style>
</head>
<body>
<table>
<tr>
<td>
First cell.
</td>
<td>
<textarea rows="30" cols="50">Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. Second cell. </textarea>
</td>
</tr>
</table>
</body>
</html>
“第一个细胞”。显示在第1页上,textarea在第2页上显示。请参阅snapshots。
有没有办法强制两个<td>
元素始终显示在同一页面上?