How to display the font on a transparent background and display the transparent background in the font

Source: Internet
Author: User

How to display the font on a transparent background and display the transparent background in the font

Opacity transparency can be used in the production of web pages. To improve the effect, transparent styles are essential.

Remember to make a Web page, one of which is given a 30 high, translucent black background. There is a navigation line on it, and the color of the navigation font becomes gray-black, I wanted to make it a white font. I thought it was the ul layer of the font under the background block. I wanted to use z-index to increase the height of the font, but it was useless.

At that time, I still don't know opactiy's application or code writing format. One is to use the opacity value between 0 and 1, and to display the content on a transparent background, when the background is transparent, You Need To directly use the four values in the parentheses after rgba (,). The first three values are the corresponding values of the color, the last one is the transparency value of the background.

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.