How to set CSS background background and background colors in Web pages

Source: Internet
Author: User
CSS background This refers to setting the background properties of the object through CSS, such as the various styles of setting the background through CSS in a Web page.

CSS Background background: Sets the solid color background. Background background You can set the background color of the object's solid color and set the picture as the background. You can set the object background as a picture, if the background is a picture, you can let the picture repeat the tiling, or the picture as the object background fixed to the object anywhere.

1. CSS background of some small common sense

How to set the background color of a label
There is a Background-color: property in CSS that is specifically used to set the background color
Value:
A specific word
Rgb
Rgba

Hexadecimal

2. CSS background map automatically scales based on screen size

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.