📜  html中如何让渐变背景覆盖整个页面 - CSS代码示例

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

代码示例1
/*Basically, add html height 100%. This will stretch your gradient.*/
html {
  height:100%;
}

body {
  background-image: /* put gradient here */;
  background-repeat: no-repeat;
}