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 realize the effect of CSS3 fuzzy layer

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article introduces the relevant knowledge of "how to achieve the effect of CSS3 fuzzy layer". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

HTML:

CSS3:

Div {

Background:url ("image.jpg") no-repeat

Width:200px

Height:180px

Margin:50px auto 0

Position:relative

}

.content {

Position: absolute

Left: 0

Right: 0

Bottom: 0

Width: 100%

Height: 30px

Overflow: hidden

}

.blur {

Position: absolute

Width: 100%; bottom: 0; left: 0

-webkit-transform: translateZ (0)

Transform: translateZ (0)

Filter: url (blur-5px.svg#blur)

-webkit-filter: blur (5px)

-moz-filter: blur (5px)

Filter: blur (5px)

Filter: progid:DXImageTransform.Microsoft.Blur (PixelRadius=5, MakeShadow=false)

}

.meta {

Position: absolute

Left: 0

Bottom: 0

Width: 100%

Color:#fff

Background-color: rgba (0pd0re0p0pl .2)

Font-size:12px

Line-height:30px

}

Note:

The effect code is as above, which perfectly supports FF and chrome browsers, but does not seem to be of any use to IE and edge browsers, and there seems to be a lot of horizontal bars in 360 browser version 7.0.

This is the end of the content of "how to achieve the effect of CSS3 fuzzy layer". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

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