Скажем, у меня есть
<div class="myDiv">Hi there</div>
Я хочу поставить background-image
и дать ему opacity
0.5
- но я хочу, чтобы текст, который я написал, будет иметь полную непрозрачность (1
).
Если бы я написал CSS как это
.myDiv { opacity:0.5 }
все будет в низкой непрозрачности - и я не хочу этого.
Поэтому мой вопрос: как получить фоновое изображение с низкой непрозрачностью с полным текстом непрозрачности?