/*颜色不渐变直接切换*/
background: linear-gradient(to right, #40474D 50%, #1E73BD 50%);
/*颜色渐变*/
background: linear-gradient(to right, rgba(64, 71, 76, 1), rgba(64, 71, 76, 0.7));
/*颜色渐变的,透明度同时设置背景图*/
background: linear-gradient(to right, rgba(64, 71, 76, 1), rgba(64, 71, 76, 0.7)),
url(../../oc-images/pc-page-banner.png) no-repeat;
background-size: cover;
/*位置可以设置right left bottom top 以及左上右下等特殊方向的渐变*/