CSS background-blend-mode属性怎么用?
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了CSS background-blend-mode属性怎么用?,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1337字,纯文字阅读大概需要2分钟。
内容图文
![CSS background-blend-mode属性怎么用?](/upload/InfoBanner/zyjiaocheng/419/71fdf769653f4d8598f416775f26093b.jpg)
CSS background-blend-mode属性
作用:用于定义了背景层的混合模式(图片与颜色)
语法:
background-blend-mode: normal|multiply|screen|overlay|darken|lighten|color-dodge|saturation|color|luminosity;
属性值:
normal:默认值,设置正常的混合模式。
multiply :正片叠底模式。
screen:滤色模式。
overlay:叠加模式。
darken:变暗模式。
lighten:变亮模式。
color-dodge:颜色减淡模式。
saturation:饱和度模式。
color:颜色模式。
luminosity:亮度模式。
注: Internet Explorer 不支持 background-blend-mode 属性。
CSS background-blend-mode属性的使用示例
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <style> body {background-color: yellow;} div { width: 290px; height: 69px; background-size: 290px 69px; background-repeat:no-repeat; background-image: linear-gradient(to right, #25a1b1 50%,#862e3e 100%), url('https://img.php.cn/upload/article/000/000/024/5c6a4428ea867709.png'); background-blend-mode: color-dodge; } </style> </head> <body> <div></div> </body> </html>
效果图:
以上就是本篇文章的全部内容,希望能对大家的学习有所帮助。
以上就是CSS background-blend-mode属性怎么用?的详细内容。
内容总结
以上是互联网集市为您收集整理的CSS background-blend-mode属性怎么用?全部内容,希望文章能够帮你解决CSS background-blend-mode属性怎么用?所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。