📜  在图像 css 代码示例上叠加颜色

📅  最后修改于: 2022-03-11 14:47:51.654000             🧑  作者: Mango

代码示例1
footer#site-footer{  
  position:relative;
}

footer#site-footer:before {     /* use before property (pseudo-element)  */
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
}