1.当body背景色设置为红色,html设置为图片时
body { ????background-color: red; }html { ???height: 100%; ???background: linear-gradient(rgba(196, 102, 0, 0.2), rgba(155, 89, 182, 0.2)), ???url("../imgs/register.jpg") no-repeat 100%;}
2.当html背景色设置为红色,body设置为图片时
html { ????background-color: red; }body { ???height: 100%; ???background: linear-gradient(rgba(196, 102, 0, 0.2), rgba(155, 89, 182, 0.2)), ???url("../imgs/register.jpg") no-repeat 100%;}
body和html背景色区别
原文地址:https://www.cnblogs.com/ccllj/p/9174575.html