作者:手机用户2502925983 | 来源:互联网 | 2023-05-17 17:46
Here's the current version of my webpage:
这是我的网页的当前版本:
What I plan on doing is creating a vertical fade across the background, from white at the bottom to light grey (the same grey I used for the 0's and 1's in the background) at the top.
我打算做的是在背景上创建一个垂直淡入淡出,从底部的白色到顶部的浅灰色(我用于背景中的0和1的灰色)。
According to W3schools (http://www.w3schools.com/css/css3_gradients.asp), the syntax
根据W3schools(http://www.w3schools.com/css/css3_gradients.asp),语法
background: linear-gradient(angle, color-stop1, color-stop2);
means I should add the line
意味着我应该添加这条线
background: linear-gradient(90, white, #D8D8D8)
in the #mtx_bckgd block in the stylesheet. But when I do that, I'm getting a dark blue fade and my 0's and 1's are turning white.
在样式表的#mtx_bckgd块中。但是当我这样做时,我会得到一个深蓝色的淡入淡出,我的0和1正在变白。
1 个解决方案