小编bij*_*ume的帖子

SVG背景图像没有显示

我已经将绿色png图像作为div的背景放置,它看起来像这样:

在此输入图像描述

我使用了CSS hack来保持文本在绿色背景中.所以这是我对该部分的HTML:

<section id="aboutprocess">
        <div class="container">
            <div class="row">
                <div class="col-md-8 ">
                    <p class="text-center">Our agile team continuously delivers working software and empowers your organization to embrace changing requirements.
                    </p>
                    <button type="button" class="btn btn-link center-block white" role="link" type="submit" name="op" value="Link 2">about our process</button>
                </div>
                <!--end col-md-8 col-md-offset-2-->
            </div>
            <!--end row -->
        </div>
        <!--end container-->
    </section>
    <!--end aboutprocess-->
Run Code Online (Sandbox Code Playgroud)

这是CSS:

#aboutprocess {
        background: url("../img/tech_bg.png") no-repeat left top;
        width: 100%;
        background-size: cover;
            }

    #aboutprocess .container {
        padding-top: 32.6316%;
        position: relative;
    }

    #aboutprocess .row { …
Run Code Online (Sandbox Code Playgroud)

html css svg background-image twitter-bootstrap

6
推荐指数
2
解决办法
1万
查看次数

标签 统计

background-image ×1

css ×1

html ×1

svg ×1

twitter-bootstrap ×1