Home  >  Article  >  Web Front-end  >  How to cancel color in css

How to cancel color in css

藏色散人
藏色散人Original
2021-04-09 14:19:382865browse

How to cancel the color in css: first open the corresponding css code content; then add the "background-color:transparent;" attribute to the already set background color to cancel the color.

How to cancel color in css

The operating environment of this article: windows7 system, CSS3&&HTML5 version, Dell G3 computer.

css Remove existing background color

Add background-color:transparent;

# to the already set back color ##The background image is fixed and does not scroll with the scroll bar

background-attachment:fixed;

Note: transparent means transparent,

background-color:transparent; means the background Color is set to transparent. However, by default, as long as the background color (or background image) is not set, the background is transparent. Generally not used.

【Recommended learning:

css video tutorial

The above is the detailed content of How to cancel color in css. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn