안녕하세요 나는 내가 단지 CSS3를 사용하여 수행 할 수 있는지 알고 싶습니다 있도록이 배경이 이미지처럼 흐리게 만들려고 아니면 자바 스크립트 & jQuery를 사용할 필요가 :
그리고 나는 경우를 CSS 만 사용합니다. 흐리게 처리하는 방법은 반응 적입니다. 여기배경 흐림 효과 - CSS
내 간단한 코드 :
#bg{
background-image: url('http://store6.up-00.com/2017-03/149079039538851.jpg');
background-repeat: no-repeat;
background-size: cover;
}
#bg {
background-position: center top;
padding: 70px 90px 120px 90px;
}
#search-container {
position: relative;
}
#search-bg {
/* Absolutely position it, but stretch it to all four corners, then put it just behind #search's z-index */
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
z-index: 99;
/* Pull the background 70px higher to the same place as #bg's */
/*background-position: center -70px;*/
-webkit-filter: blur(10px);
filter: blur(10px);
}
#search {
position: relative;
z-index: 100;
padding: 20px;
background: rgba(34,34,34,0.75);
}
#search h2{
color:#ffffff;
}
<div id="bg">
<div id="search-container">
<div id="search-bg"></div>
<div id="search">
<h2>Hello World</h2>
</div>
</div>
</div>
당신이 그것을 고려한다면 내 대답을 확인하는 것을 잊지 마세요, 저 –
에게 어떤 문제를 돕는하지 주셔서 감사합니다 좋은 대답으로 :) (체크 표시) –