Get the App
SLTechnology News&Howtos  ›  Development  › 

How to set CSS translucent style for DIV

Shulou Source: shulou.com Published: 2022-06-01 08:45:10 10月03日 Update

Most people do not understand the knowledge points of this article "how to set CSS translucent style for DIV", so the editor summarizes the following contents, detailed contents, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "how to set CSS translucent style for DIV" article.

1. We participate in the semi-colorless color code for the ".div-b" determiner:

Filter:alpha (Opacity=60);-moz-opacity:0.6;opacity: 0.6

Set 60% semi-transparent effect

The HTML code of the incomplete example web page is as follows:

Online demonstration of translucent examples css5.com.cn.div-a {bac kg round:url (div-a-bg.png) no-repeat;width:230px;height:136px;padding:10px}. Div-b {background:#000;width:200px;height:100px;padding:5px;color:#F00; filter:alpha (Opacity=60);-moz-opacity:0.6 Opacity: 0.6} / * CSS shows that: the purpose of wrapping the CSS code here is to let the code reveal that the performance of the code is broken, and the performance of the CSS will not be affected after the line break * / to achieve DIV translucency. The above demonstration is about the content of the article "how to set the translucent style of CSS for DIV". I believe you all have some understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about it, please follow the industry information channel.

Tags: Content code style examples articles knowledge articles presentations value efficacy most of that is effectiveness I want more steps knowledge points web pages colors industries Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS MariaDB Shulou Tech Info Shulou Information NVidia