标签: html css twitter-bootstrap
我有重复身体区域的问题,wchich看起来像这样:
如何解决?
答案 0 :(得分:1)
您可以使用background-size:cover更改背景大小以适合整个元素。
background-size:cover
body { width:100%; height: 600px; background: linear-gradient(red, yellow); background-size: cover; }
答案 1 :(得分:0)
这应该修复它,背景只显示一次
body { background-repeat: no-repeat; }