Сообщение от ksa
|
Начать можно с того, что указать дочерним элементам это свойство но с "дефолтным" значением...
Т.е. не родительское.
|
Эта идея меня тоже первым делом посетила, но нет...
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"> </script>
</head>
<style type="text/css">
.blockPhotos{
margin: 1%;
border: 1px solid black;
width: 650px;
height: 900px;
}
.boxPhoto{
margin: 1% 2%;
width: 600px;
height: 859px;
*!* filter: grayscale(1); */!*
border: 1px solid black;
cursor: pointer;
}
.fullGate{
position: relative;
width: 100%;
height: 100%;
*!* filter: grayscale(0); */!*
border: 1px solid black;
}
.ph_1{
background: url('https://github.com/BlackStar1991/Pictures-for-sharing-/blob/master/Scarlett_Johansson.jpg?raw=true') no-repeat 50% 50%;
}
.icon{
position: absolute;
top: 70%;
left: 0%;
width: 256px;
height: 256px;
background: url('https://raw.githubusercontent.com/BlackStar1991/Pictures-for-sharing-/master/ScarlettJohansson.png') no-repeat 50% 50%;
filter: grayscale(1);
}
</style>
<body>
<div class="blockPhotos">
<div class="boxPhoto ph_1">
<div class="fullGate">
<div class="icon"></div>
</div>
</div>
</div>
</body>
</html>
Ну или я Вас не правильно понимаю