我如何让文本(“欢迎使用 Mane Frame Radio”)高于我在 css 中指定的渐变(超大屏幕:课后)?
最佳答案
让bg图像像这样:
body {
background-image: url('http://znc.mane-frame.com/static/silverleaf.png');
background-repeat: no-repeat;
background-attachment: fixed;
}
然后使用渐变作为超大屏幕的背景,像这样:
.jumbotron {
display: block;
margin: 0 auto;
position: relative;
background: linear-gradient(to bottom, rgba(255, 26, 2, 0.2) 0%, rgba(127, 13, 1, 1) 100%);
}
现在您不再需要 jumbotron:after
。
关于html - 在渐变之上制作文字,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35261247/