html - 在渐变之上制作文字

标签 html css twitter-bootstrap-3

我如何让文本(“欢迎使用 Mane Frame Radio”)高于我在 css 中指定的渐变(超大屏幕:课后)?

剪接:http://bootsnipp.com/user/snippets/l056a

最佳答案

让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/

相关文章:

twitter-bootstrap - 如何使用 bootstrap 3 从特定 anchor 标记中删除悬停背景颜色

javascript - Bootstrap 下拉菜单表现怪异

twitter-bootstrap - 旋转 FontAwesome 的位置箭头?

html - 为什么 css 代码在 float 中不起作用?

jquery - 自动完成中的滚动条

css - 在页脚中显示菜单,但在移动设备上显示在页眉中

html - 为什么 svg 在 Firefox 中延伸而不是 Chrome

php - 在 PHP 中从 HTML 中提取数据的最简单方法是什么?

javascript - 根据 anchor 中的标签添加样式

javascript - 来自 HTML5 Intl API 的一周的第一天