HTML JS print add watermark Picture

Source: Internet
Author: User

Finally, listen to the opinions of others, change a train of thought. Place the watermark and the content you want to print in a Div, set a higher level for the printed div so that the watermark is naturally at the bottom. Put some code on the following: HTML:<Divclass= "Big-div">    <Divclass= "Bg-div">       <imgsrc= "Images/bg-zkz.png">          <Divclass= "Small-div">       </Div>    </Div></Div>Css:.big-div {position:relative; z-index:99;}.    Small-div {position:absolute;    top:0; left:0;}.    Bg-div {display:inline-block;    position:relative;    width:684px; height:934px;} In this way, in each browser can print out the watermark, then that excited mood ah. 

Reference Address: http://blog.it985.com/10155.html

HTML JS print add watermark Picture

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.