printing-web-page

Strange IE7 Printing Bug

喜你入骨 提交于 2019-12-10 16:48:34
问题 I have a page that renders fine in IE6/7 and Firefox 3.5. Both IE6 and Firefox 3.5 have no problems printing the page, but IE7 does. When the page is printed, the first half of my content div is not visible, with the exception of two tables that do show up. The content begins to reappear mid-sentence, where there is no tag or break of any kind. It's almost like there's something hiding the first half of the div but letting the tables be shown. However, I have no out-of-place tags, no magic

HTML/CSS - Styling for print, background color and image would not show in IE and Firefox?

南楼画角 提交于 2019-12-10 13:51:13
问题 how can i show the background color and image while printing, i knew it this is the browser properties but i want to complete it from CSS such as i use for webkit -webkit-print-color-adjust: exact; so how can i achieve it. 回答1: No, it is not possible, see: -webkit-print-color-adjust The -webkit-print-color-adjust property is a non-standard CSS extension that can be used to force printing of background colors and images in browsers based on the WebKit engine. There is no such solution for

Printing horizontally scrolling content onto the next page - possible?

久未见 提交于 2019-12-10 09:45:38
问题 I've been unsuccessfully trying to print horizontally scrolling content. I've come to a point where I'm tired of searching and I think it's time to ask - So here goes, below is a really simplified version of the content I want to print - The HTML <div id="printingDiv"> <div class='filterRow'>Something long to print#1 Something long to print#2 Something long to print#3 Something long to print#4 Something long to print#5 Something long to print#6 Something long to print#7 Something long to

Printing API-Generated Google Maps from Internet Explorer

浪子不回头ぞ 提交于 2019-12-08 11:12:59
问题 Having an odd problem printing an API-generated (V3) Google Map from Internet Explorer 7 & 8. I generate my map with JavaScript similar to the following: <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript"> function initialize() { var centroid = new google.maps.LatLng(35.9948166667, -83.9781791667); var myOptions = { disableDefaultUI: true, zoom: 12, mapTypeId: google.maps.MapTypeId.ROADMAP, center: centroid }; var map

Printing Issue in Chrome

时光毁灭记忆、已成空白 提交于 2019-12-08 08:12:54
问题 I have Google Chrome with the version 34.0.1847.116. I am using the following code for printing $('#print').live("click", function(){ var url = baseUrlReports + "******************"; var txnwindow = window.open(url ,""); txnwindow.print(); txnwindow.focus(); }); At this moment the Chrome hangs at the Loading preview. Then All of my JS stops responding and I am unable to refresh the page. Have no other option to close the Window. Can anyone tell me what is exactly the problem here? The same

Printing horizontally scrolling content onto the next page - possible?

痞子三分冷 提交于 2019-12-05 21:04:48
I've been unsuccessfully trying to print horizontally scrolling content. I've come to a point where I'm tired of searching and I think it's time to ask - So here goes, below is a really simplified version of the content I want to print - The HTML <div id="printingDiv"> <div class='filterRow'>Something long to print#1 Something long to print#2 Something long to print#3 Something long to print#4 Something long to print#5 Something long to print#6 Something long to print#7 Something long to print#8 Something long to print#9 Something long to print#10</div><br/> <div class='filterRow'>Something

Keep contents of a div together for printing in IE8

。_饼干妹妹 提交于 2019-12-05 04:52:01
Given the following HTML document, I need to keep the "Table title" line on the same page as the <table> when being printed in IE8. Despite the page-break-inside:avoid; , there is still a page break between the title and the table. My understanding of this suggests a page break should be avoided and the whole div pushed on to page 2. The doctype is XHTML 1.0 Transitional, I have <meta http-equiv="X-UA-Compatible" content="IE=8" /> set to force IE8 into Standards Mode which supposedly supports this syntax , and I have verified the rendering is being done in standards mode by checking document

Alternative for page-break-inside: avoid

落花浮王杯 提交于 2019-12-04 23:24:54
I have a page which generates coupons. Each coupon is a div with a height varying depending on the content. I want to print as many coupons on each page as possible, but I do not want the coupons to be split out over several pages. The CSS property page-break-inside does exactly what I need. However, I need this to work for Firefox and/or Chrome. And this is not supported . Two years and one year ago the same question was asked, and there was no good alternative for this. We are a lot of CSS3/HTML5/overall browser development further... is there an alternative to get this working? Example is

text-shadow and box-shadow while printing (Chrome)

南楼画角 提交于 2019-12-04 02:53:57
问题 I'm making some printable calendar website using HTML, CSS and JS. Unfortunately I cannot use CSS property called text-shadow , because shadow behind text prints as solid black text without any blur or transparency. Same problem occurs when I'm trying to use box-shadow for any div - shadow prints like solid black color with no transparency. I'm using Chrome with style html {-webkit-print-color-adjust: exact;} to ensure all background colors will be printed. Any workaround? I would prefer not

Specify hairline thickness in CSS for printing

耗尽温柔 提交于 2019-12-03 06:52:50
问题 If I have a print CSS styling an element with: border:1px solid black; or: border:0.25pt solid black; The line is very thick when it prints – at least 1pt. If I try a much smaller value, such as 0.05pt, the line doesn't appear at all. How can I get a thin line? In programs like InDesign you set the thickness to 0.25pt for a 'hairline', i.e. a very thin line but not so thin that it won't be printable. Note: this question seems to ask the same thing, but nobody has addressed the actual issue of