A detailed description of CSS color

Source: Internet
Author: User
Color: Specifies the color. See Color units and Appendix: color Tables
Description
Retrieves or sets the text color of an object. No default value.
Note that color names specify that color is not accepted by some browsers.
The corresponding script attribute is color. Please refer to the other bibliography I have written.
Example:

div {color: #345456;} div {Color:rgb (100,14,200);} div {color:menu;} div {color:red;}

Color is the colour of the font,

Background-color is the color of the background

Can the color attribute in CSS inherit? ~!!?

CSS in the Color property can inherit, first need to understand the concept of the parent element, like Div wrapped p or some other tags, these colors are inheritable, but for some tags are not inherited, such as a tag, you need to manually change, you can see the code:

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.