Examples and effects of a small but practical CSS printing class

Source: Internet
Author: User
UntitledDocument. tdp {border-bottom: 1 solid #000000; border-left: 1 solid #000000; border-right: 0 solid # ffffff; border-top: 0 solid # ffffff ;}. tabp {border-color: #000000 #00000

Untitled Document


Computer World developer clubPHP, DELPHI, JAVA
A small but practical CSS print style. When a table with a background is printed, the grid lines displayed on the page cannot be printed. In fact, you need to select "print background" when printing ". Generally, this step is not required. However, when you print a grid line drawn from a style sheet, you can see what you see. Of course, this effect cannot be compared with professional print controls such as "Crystal Report", but it is competent to meet common requirements.

However, when printing, the "print" button cannot be printed, soThis step is very important to use two events to control it. When using these two styles, one is to make the class = "tabp", and then each class under it = "tdp", which does not need to be specified. Remember to specify each one .... Print effect (the printed items do not include menus, but only the following content ):

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.