【问题标题】:How to Insert Background Image in One Page Wonder Bootstrap template?如何在一页 Wonder Bootstrap 模板中插入背景图像?
【发布时间】:2019-02-24 21:44:42
【问题描述】:

我正在使用 One Page Wonder Bootstrap 模板进行构建:https://startbootstrap.com/themes/one-page-wonder/

我不知道如何在标头广告中插入背景图片。有人有这方面的经验吗?

谢谢!

【问题讨论】:

  • background-image: url('http//example.com/image.png'); 是标准方法。你试过吗?你已经尝试了什么?您能否将现有代码添加到您的问题中?
  • 你能提供你已经尝试过的吗?一些代码示例等?

标签: html css templates sass web-site-project


【解决方案1】:

您可以使用此规则替换大量标头内容。

header.masthead .masthead-content {
  background-image: url('http//example.com/image.png');
}

不过,更换整个标头广告更为复杂。您可能希望首先编辑 HTML 以删除 bg-circle 元素,从而为您提供更干净的 DOM。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-08-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-07-08
    • 2013-06-06
    • 2013-04-07
    • 2017-01-27
    相关资源
    最近更新 更多