Home > Article > Web Front-end > How to set transparency to background image in html
htmlHow to set the transparency of the background image: 1. Use the opacity attribute to add the "opacity: transparency value;" style to the element that sets the background image; 2. Use the filter attribute to set the background image. Just add the "filter: opacity (transparency value);" style to the element.
The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.
htmlSet the transparency of the background image
1. Use the opacity attribute
背景图片背景图片
2. Use the filter attribute
##Related recommendations: "背景图片背景图片
html video tutorial 》
The above is the detailed content of How to set transparency to background image in html. For more information, please follow other related articles on the PHP Chinese website!