css sets the background image to be blurry and the content not to be blurry

卡哇伊
Release: 2020-07-15 17:25:52
Original
10683 people have browsed it

css sets the background image to be blurry and the content not to be blurryRequirement: A p has set the background: url. Now it is necessary to blur the background of the picture and display the text in the p clearly.

Original code:

  

我是内容

Copy after login
Copy after login

Original effect:
css sets the background image to be blurry and the content not to be blurry

Solution: The content and image are placed in a p respectively, and the background p blur is set through css , set the absolute position of content p.

html code:

  

我是内容

Copy after login
Copy after login

Effect:
css sets the background image to be blurry and the content not to be blurry

##Requirements: A p has a background: url set. Now it is necessary to blur the background of the image and display the text within the p clearly.

Original code:

  

我是内容

Copy after login
Copy after login

Original effect:


css sets the background image to be blurry and the content not to be blurry

Solution: The content and image are placed in a p respectively, and the background p blur is set through css , set the absolute position of content p.

html code:

  

我是内容

Copy after login
Copy after login
Effect:


css sets the background image to be blurry and the content not to be blurry

Thank you all for reading, I hope you will benefit a lot.

This article is reproduced from:

https://blog.csdn.net/oHeHeHou/article/details/51975539

Recommended tutorial:

"css tutorial"

The above is the detailed content of css sets the background image to be blurry and the content not to be blurry. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!