سؤال

I want to print HTML page with background colors and rounded corners using internet explorer 6

Everything works fine before printing. When I print the page background colors and rounded corners disappear

CSS

#div
{
       behavior: url(PIE.htc);            
       position:relative;
       background-color:silver;
       width:630px;
       margin:auto;
       border-radius:30px 0 0 30px;
       border:2px solid gray;
 } 
هل كانت مفيدة؟

المحلول

That's intentional actually: since 1.0 beta 3 and this particular commit...

Printing – PIE now removes itself from all elements when the page is printed. Besides avoiding many rendering problems, this also allows the user’s printing preferences regarding backgrounds to be honored and avoid wasting ink.

And it usually makes sense, ain't it? But yes, clients are different - and if they really really really want this feature, you'll have to either downgrade to PIE 1.0 beta 2 (the easiest way, but apparently riddled with downsides) - or build your custom version of PIE.htc that doesn't have sources/OnPrint.js included.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top