CSS特效(17)——背景图混合模式 background-blend-mode

背景图混合模式 background-blend-mode

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style>
    .container {
    background: url('1.jpg'), url('2.jpg');
    background-size: cover;
    background-blend-mode: lighten;
    width: 30%;
    height:500px;
}
  </style>
</head>
<body>
    <div class="container"></div>
</body>
</html>
posted @ 2018-09-07 15:38  Janas  阅读(269)  评论(0编辑  收藏  举报