Traditional Culture Encyclopedia - Traditional festivals - How to change the font color in the web page production?
How to change the font color in the web page production?
1, first of all, open hbuilder software, create a new html file, which writes three p tags, and then in the style tag to set the basic style of p tags, including spacing, font size and other attributes:
2, and then in the style tag with three ways to set the text color, the first p tag with a hexadecimal set the color of every two numbers for a group, the maximum number of ff, they represent the red, green and blue colors; the second method is rgba, also red, green and blue colors, only the value becomes a number, the maximum of 255 indicates the most vibrant color, for example, the first one is set to 255 is the most red:
3, the third label using HSL color, where H represents the hue, the value of the maximum of 360, 0 and 360 is also red, other colors in the middle; s is saturation expressed as a percentage, 0% means the darkest, 100% means the brightest; L means the brightness of the value is also a percentage; rgba and hlsa in the a are expressed as transparency, the value of 0.0 to 1.0 between 0.0 is fully transparent, 1.0 is completely opaque:
4, and finally open the browser will be able to three methods of expressed out of the color :
- Previous article:Which is better, the original Longines or the replica Longines?
- Next article:What do all kinds of cakes mean?
- Related articles
- Traditional Kung Fu Master Stephen Chow
- What are the techniques to catch the stopping point
- Jingpo traditional caotang
- Why do some people think that Chinese food has conquered the whole world?
- How to write a letter composition that strives for virtue.
- How much do you know about the Mid-Autumn Festival custom in Yongnian?
- Is Tianjin Art Vocational School reliable?
- Why you wear a suit with a handkerchief in your left breast pocket
- How to establish family style in the family Ways to establish good family style
- What is a skit?