HTML页面打印不正确 [英] HTML page printing incorrectly

查看:115
本文介绍了HTML页面打印不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这个页面中间打印了一个javascript日历,由于某些原因,当我运行这个代码时,地址块打印在日历打印的表格上方。我需要在地址栏上方打印日历。提前感谢您的帮助

I am printing a javascript calendar in the middle of this page, for some reason when I run this code the Address block prints above the table where the calendar prints. I need the calendar to print above the address bar. Thanks in advance for any help

<body>
    <div id="head">
        <img style="float: right; border: 1px solid orange" src="photo.jpg" alt="" />
        <img src="ccc.jpg" alt="Chamberlain Civic Center" />
    </div>

   <div id="links">
       <table><tr>
           <td><a href="#">Home</a></td><td><a href="#">Tickets</a></td>
           <td><a href="#">Events</a></td><td><a href="#">Directions</a></td>
           <td><a href="#">Hours</a></td><td><a href="#">Calendar</a></td>
           <td><a href="#">Tour</a></td><td><a href="#">Contact Us</a></td>
       </tr></table>
   </div>

   <div id="main">
       <h1>Yearly Calendar</h1>
       <table id='yearly_table'>
       <tr>
           <th id='yearly_title' colspan='4'></th>
       </tr>
       <script type="text/javascript">
           yearly();
       </script>
   </div>

   <address>
   The Chamberlain Civic Center &nbsp;&#183;&nbsp;
   2011 Canyon Drive &nbsp;&#183;&nbsp;
   Chamberlain, SD 57325 &nbsp;&#183;&nbsp;
   (800) 555-8741
   </address>

</body>


推荐答案

看起来你没有关闭表格标签,把它放在< / script> 行的下面:< / table>

Looks like you didn't close the table tag, put this below the </script> line: </table>

这篇关于HTML页面打印不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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