Source Code: (back to article)
<!DOCTYPE html>
<html>
<head>
<title>Заголовок документа</title>
<style>
img.a{
opacity: 1;
filter: alpha(opacity=100);
}
img.b{
opacity: 0.6;
filter: alpha(opacity=100);
}
img.c{
opacity: 0.2;
filter: alpha(opacity=100);
}
</style>
</head>
<body>
<h2>Пример свойства opacity</h2>
<h3>Opacity: 1.0;</h3>
<img src="/uploads/media/default/0001/01/4982c4f43023330a662b9baed5a407e391ae6161.jpeg"
alt="house" width="300" height="300"
class="a">
<h3>Opacity: 0.6;</h3>
<img src="/uploads/media/default/0001/01/4982c4f43023330a662b9baed5a407e391ae6161.jpeg"
alt="house" width="300" height="300"
class="b">
<h3>Opacity: 0.2;</h3>
<img src="/uploads/media/default/0001/01/4982c4f43023330a662b9baed5a407e391ae6161.jpeg"
alt="house" width="300" height="300"
class="c">
</body>
</html>