开发者

How do I print the windows content which is at the top and not at the background

I have a search criteria which di开发者_开发技巧splays some results.

In the results when I click a hyperlink (it is an aspx application ) it opened a javascript window with some content in it.

And it automatically pop-ups up a Print Dialog asking for print.

When I click on print it is printing the background content and as well as the window content.

But if I explicitly right click and select print on the new JavaScript window it is printing fine.

The ASPX application is not the one which we control


You should be able to accomplish this with a special style sheet that targets media type of print.

<link rel="stylesheet" type"text/css" href="print.css" media="print">

body{
  background:none;
  /*Other css rules for the popped window*/
}
#someElement{ /* do not print this element*/
  display:none;
}

Another good resource is from A List Apart - CSS Design: Going to Print.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜