blur

CSS blur on background image but not on content

删除回忆录丶 提交于 2019-11-26 05:37:35
问题 I did this example. I\'m trying to blur the background image, but the main content is blurred too (the <span> ) How can I blur the background without blurring the content? 回答1: You could overlay one element above the blurred element like so DEMO div { position: absolute; left:0; top: 0; } p { position: absolute; left:0; top: 0; } 回答2: jsfiddle .blur-bgimage { overflow: hidden; margin: 0; text-align: left; } .blur-bgimage:before { content: ""; position: absolute; width : 100%; height: 100%;

How to blur(css) div without blur child element

£可爱£侵袭症+ 提交于 2019-11-26 01:53:53
问题 <div class=\"row\"> <div class=\"col-lg-3\"> <button class=\"btn\"> button </button> </div> .col-lg-3{ background-color:#8CD6EB; -webkit-filter: blur(3px); -moz-filter: blur(3px); -o-filter: blur(3px); -ms-filter: blur(3px); filter: blur(3px); } If I do not want to blur the button, what do I need to do? http://jsfiddle.net/L8ksa46g/ 回答1: How to disable blur on child element? .enableBlur>* { filter: blur(1.2px); } .disableBlur { filter: blur(0); } <div class="enableBlur"> <hr> qqqqq<br> <span