How to use CSS Background-color properties

Source: Internet
Author: User
Grammar:

background-color:transparent | Color

Parameters:
Transparent: background color transparent
Color: Specifies the color. See Color units and Appendix: color Tables

Description

Sets or retrieves the background color of an object.
The corresponding script attribute is backgroundcolor. Please refer to the other bibliography I have written.

Example:

P {background-color:silver}div {Background-color:rgb (223,71,177)} body {background-color: #98AB6F}pre {background -color:transparent; }

Background-color--background color, defining the color of the background

Value: <color> | Transparent | Inherit

<color>: Color notation

Transparent: Transparent

Inherit: Inheritance

Initial value: Transparent

Inheritance: Yes

Applies to: all elements

Background: background. Color: color.

The background color corresponds to the foreground color, and you can define the colors of the background.

Example

body {background-color:green;}

Defines the background of a Web page using green.

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.