W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
运行代码
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> .container { background-color: red; padding: 15px; } .container img { mix-blend-mode: darken; } </style> </head> <body> <h1>mix-blend-mode 属性</h1> <p>mix-blend-mode 属性规定元素内容如何与其背景混合:</p> <div class="container"> <img src="/i/photo/tulip.jpg" alt="Tulip" width="300" height="300"> </div> </body> </html>