I told my girlfriend Programming HTML Series (9)-color values and how to get color values and download software tips

Source: Internet
Author: User

First, color name

Most browsers support a collection of color names.

Only 16 color names are supported by the HTML4.0 standard. They are: Aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, yellow.

In fact, just remember the following few commonly used on the line:

Serial number

Color name

Mean

1

Red

Red

2

Green

Green

3

Blue

Blue

Red and green Blue is the color 3 primary colors, mixed according to different proportions can get other colors

4

Black

Black

5

White

White

6

Gray

Grey

Black and white ash used more

The method used is also very simple, such as setting the background of the Web page is gray, the effect is as follows:

The code is as follows:

"  background-color:gray"></body>

Description

The Background-color property is set to the background color, where the style is placed in the body tag, setting the background color of the entire page will work.

The attribute value is gray, which is grey, and the middle of the attribute and value is colon.

Second, the color value

The color is defined by a hexadecimal symbol, which consists of red, green, and blue values (RGB). The minimum value for each color is 0 (16 binary: #00). The maximum value is 255 (16 binary: #FF).

Decimal uses 0 to 9 to indicate that the largest is 9;

Hexadecimal uses 0 to F to represent, the largest is F, for 15, and for letters, the case is the same.

Here is the control relationship:

Decimal digits

hexadecimal digits

0 to 9

0 to 9

10

A

11

B

12

C

13

D

14

E

15

F

For conversions between binaries, you can use the "calculator" that comes with windows, such as:

Select "Programmer" in the view and it will look like this.

The default input is 10 binary number, when you enter 100, want to see the corresponding 16, just to select the first radio box to "hex", the input box will automatically convert 100 into 16 digits.

For red-green-blue, each color is represented by a two-bit 16-digit number, with a minimum of 00 and a maximum of FF (corresponding to the 10-decimal 255).

Color value before adding a #, such as #40A4FF, they are in accordance with the order of red, green and blue, where red is 40, green is A4, Blue is FF (maximum), the greater the value, the larger the proportion of the color, the effect

Several of the color values described above are as follows:

Serial number

Color name

Mean

Color values

1

Red

Red

#FF0000

2

Green

Green

#00FF00

3

Blue

Blue

#0000FF

4

Black

Black

#000000

5

White

White

#FFFFFF

6

Gray

Grey

#808080

As you can see, if you need to show red, set the red maximum FF, the other two are set to 00;

When there is nothing in the world, the faint sky, a dark, this is the black value #000000;

Third, the color value of the other expression method

1,rgb (red, green, blue)

The color can be expressed, such as RGB (0,88,250), the outside is RGB or RGB line, followed by parentheses (), the value of the inside is separated by commas in English, the value must be 10 binary, minimum 0, maximum 255.

2,rgb (red%, green%, blue%)

It can also be expressed as a percentage, such as RGB (10%,50%,100%), followed by parentheses (), the value of which is separated by commas in English, the value is the percentage of this color, the minimum 0, the maximum 100%.

However, the color values are generally expressed in 16-way notation, most of which are obtained from the artwork when the page is designed.

Iv. How to get the color value

Search for a long time, the comparison of several color extraction tools, and finally found a very satisfied with the gadget, called Thecolorpickersetup, the software is as follows:

The way to use it is simple:

(1) Click on the icon "tube" to start taking color;

(2) Right click the mouse, color finish, and then you can copy the value of the hex corresponding box, that is, the corresponding 16 binary color values.

(3) At the same time, you can see the corresponding RGB values. The operation is simple and easy to use.

Search software, incredibly from some foreign software on the official web download some of the alternative software, from the domestic website downloaded, accidentally may be downloaded to other alternative software, tell the novice a download software tips:

(1) such as: Really may not be obvious, that big "immediate download" actually refers to "Baidu security package".

(2) Moreover, when downloading the software, if the direct pop-up is an. exe suffix file, it is generally false, especially Setup.exe, which is usually a few software installation packages. Normal programs will usually compress for you, suffix. rar or. zip.

In order to save everyone's time, I share it to the Baidu network disk, need to download, need to install.

The address is as follows:

Http://pan.baidu.com/s/1kToQiuN

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.