Web Printing Summary

Source: Internet
Author: User

Known Issues

  1. Almost all of the online about printing is the old IE print, call ActiveX, the original eco-browser has no way to control the printing of various options, in IE FF Chrome and more browsers, universal only Window.print
  2. Print styles are specified with @media print{}, in fact there are three categories: all print screens, where all is for printing and screen display, and screen is for display. Print is for printing. There are almost no controls for Web print debugging for each browser. This makes pure web printing a very scratching-head thing, only to rely on experience a little bit of modification.
  3. Page-break-after:always This is the control paging, but IE FF no problem, to chroem under a very peculiar performance: Although said to be in the element after paging, ie and FF if there is no other print content, then the printing is over, and chorme is not , he has a blank page in the back.
  4. There may be stubborn elements in the print style can not be changed, try!important, strong the bar style.
  5. Try not to use Display:block, but use display:table
  6. Although there are options to print the background color and picture but in fact, the background picture and color in the CSS is very difficult to print out, so try to use the IMG tag to display the picture, I in order to display a Echarts chart background, specifically under him placed a div, inside with an IMG tag to put the picture.

Web Printing Summary

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.