by zhangxinxu from http://www.zhangxinxu.com本文地址:http://www.zhangxinxu.com/wordpress/?p=4819 一.关于混合模式 熟悉PS的人都应该知道混合模式: SVG以及Canvas中也有混合模式,本质上都是一样的. 下面是一些常见的混合模式的算法: 维基上也有说明.有兴趣可以了解下. 本文内容则简单介绍CSS3出现了两个与混合模式有关的属性,mix-blend-mode和background-blend-mode.
CSS background Property 语法: background: bg-color bg-image position/bg-size bg-repeat bg-origin bg-clip bg-attachment initial|inherit; Note: If one of the properties in the shorthand declaration is the bg-size property, you must use a / (slash) to sep
Body with background image and gradient html { background: linear-gradient(#000, white) no-repeat; height: 100vh; } Body with elaborate background using only CSS background-image: url("img_tree.gif"), url("paper.gif"); Using CSS backgr