Certificate Printing CSS Knowledge points summary

Source: Internet
Author: User

Demand:

1, the certificate content dynamic fill;

2, the certificate background map does not require printing, only for the display role;

3, Print content compatible with screen resolution;

Realize:

  <!--outer div width is background image width--
  <div style= "position:relative;width:1397px;margin:0 auto;" >
    <div id= "permitimg" style= "Position:absolute;" >
        <!--background image--
        
    </div>
    <div class= "Infos" style= " Position:absolute; " >
        <!--display--
        <span style= "top:77px;left:151px;" > Certificate Content </span>
    </div>
  </div>
Small Knowledge Points:

1, span fixed width, but the text does not change line, set Word-wrap:break-word;

2, adjust the span fill text line spacing, set the Line-height property;

3, span fixed width high, beyond the content of the text box is not displayed, set Overflow:hidden;


Related Article

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.