Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to set CSS translucent style for DIV

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

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.

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report