In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the CSS image transparency how to set the relevant knowledge, the content is detailed and easy to understand, the operation is simple and fast, with a certain reference value, I believe you will have something to gain after reading this CSS image transparency setting article, let's take a look at it.
Definition and usage
The opacity property sets the opacity level of the element.
Grammar
Opacity: value | inherit
Example 1: create a transparent image
Img {opacity:0.4;filter:alpha (opacity=40); / * For IE8 and earlier * /} img:hover {opacity:1.0;filter:alpha (opacity=100); / * For IE8 and earlier * /} image transparency
Note: in IE, you must add so that the: hover selector can be used for elements other than that.
Example 2: add text to the translucent box
Presentation mode
.background {width: 400px; height: 266px; background: url (http://pic.58pic.com/58pic/15/36/00/73b58PICgvY_1024.jpg) no-repeat; border: 1px solid black;} .transbox {width: 338px; height: 204px; margin:30px; background-color: # ffffff; border: 1px solid black; / * for IE * / filter:alpha (opacity=60); / * CSS3 standard * / opacity:0.6;}. Transbox p {margin:30px 40px;}
This is some text that is placed in the transparent box.This is some text that is placed in the transparent box.This is some text that is placed in the transparent box.This is some text that is placed in the transparent box.This is some text that is placed in the transparent box.
This is the end of the article on "how to set the transparency of CSS images". Thank you for reading! I believe you all have a certain understanding of the knowledge of "how to set the transparency of CSS images". If you want to learn more, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.