语法:linear-gradient(direction, color-stop 1, color-stop 2,……) 简单用法:background-image: linear-gradient(red, transparent); 增加角度,linear-gradient(45deg, red, transparent) 加个position:linear-gradient(45deg, red, transparent 45%) 加个colorlinear-gradient(45deg,…