What do you mean by no-repeat familiar with the figures in the CSS?

Source: Internet
Author: User

The role of 80px and 0 is to tell you where the picture is. By default, if you do not set the following number, the picture is placed on the top left of the page, where the following figure

An offset in the upper-left corner (0,0)

The first number is the offset on the x-axis, which is the horizontal offset, representing the right, minus the left!

The second number is the offset on the y-axis, that is, the horizontal offset, which indicates downward, and the negative indicates upward!

If you change the code to

Then the picture moves down 80 pixels to the right, and the effect is as follows:

If your settings parameter is exceeded, it will not be displayed. If I change the value 80 on the y-axis of the code to 80, then the page will not appear.

Note : More wonderful articles please pay attention to the triple web Design tutorial section.

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.