【发布时间】:2017-11-08 20:58:13
【问题描述】:
我正在尝试让我的背景渐变填充浏览器窗口的可用“空间”。 Here is an example of what is currently happening.相关代码已复制粘贴,如有遗漏请告知!
我尝试了here 和here 列出的方法,但没有一个对我有用。还有其他建议,还是我遗漏了一些明显的东西?谢谢!
.mainbody {
background: linear-gradient(#42f4d7, #f4425f) no-repeat center center fixed;
border-style: solid;
border-color: #ffffff;
font-family: Helvetica, sans-serif;
position: absolute;
top: 0;
left: 0;
min-width: 50%;
min-height: 50%;
width: 100%;
}
<div class="mainbody"></div>
【问题讨论】:
-
我将您的代码转换为 sn-p。现在试着做那个表格。我知道你是新来的,只是想帮忙。
标签: css html background gradient