IE6/7とFirefox3.5で正常にレンダリングされるページがあります。IE6とFirefox3.5はどちらもページの印刷に問題はありませんが、IE7は問題ありません。ページが印刷されると、表示される2つのテーブルを除いて、コンテンツdivの前半は表示されません。コンテンツは文の途中で再表示され始め、タグやブレークはありません。
divの前半を隠しているものの、テーブルを表示させているようなものです。ただし、私には、場違いのタグ、魔法の空のフローティングdiv、またはあらゆる種類の検証エラーはありません。また、同じCSSを使用する他のいくつかのページがあり、すべて正常に印刷されます。
誰かが似たようなことを経験したことがありますか?どのように修正しましたか(欲求不満をあきらめなかった場合)?
編集:私はついにこれを調べるためにもう少し時間がありました、そして私は問題をかなりうまく絞り込みました。divの「position」スタイル属性を「absolute」以外に変更する(これにより位置がすべて間違っている)か、少量をコメントアウトすることで、すべてのテキストを表示できます。コンテンツの。
コメントアウトできる内容はこちら...
<p><strong>Personal Expenses: </strong>EJTH will bill your credit card for any additional expenses (extension <!--XXXX-->airfare, etc.), if applicable. <strong><!-- begin broken part --><em>All charges must be paid in full before your electronic ticket confirmation will be emailed. No payments will be accepted on-site. Note:</em></strong> When using a credit card for personal purchases (i.e., optional activities, trip extensions, conference registration fees, etc.), “MT” will appear as the vendor on your credit card statement.</p>
<p>You will also be responsible for any personal charges you incur. These include phone calls, valet and laundry service or personal bar bills. The resort cashier will keep a separate record of these expenditures for you. Be sure to settle your personal account at the resort front desk prior to departure. <strong><em>Important: If you neglect to pay your personal (incidental) account when you check out, EJTH will bill you after the program for the actual cost, plus a 15% service charge.</em></strong><!-- end broken part --></p>
それが私を助けた以上にあなたを助けてくれることを願っています。今日は他の何かに引っ張られないことを前提として、CSSをいじって回避しようと思います。
編集:画面!
1つ目は、ページが現在どのように印刷されているかです。コンテンツが再表示されるページにXXXXを配置しました。上記のコードにも入れました。少し目を細めてみるとわかります。
http://img109.imageshack.us/img109/589/current.jpg
2つ目は、コンテンツdivのCSS位置を絶対から相対に変更した場合のページの印刷方法です。
http://img514.imageshack.us/img514/9961/modcss.jpg
3つ目は、「壊れた部分」をコメントアウトした場合のページの印刷方法です。つまり、問題ありません。