身体背景颜色不显示? [英] body background color not showing?

查看:102
本文介绍了身体背景颜色不显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只有一个简单的.shtml页面:

I just have a simple .shtml page:

<html>
    <head>
        <meta charset='utf-8'>
        <meta content="IE=edge" http-equiv="X-UA-Compatible">
        <meta content="width=device-width, initial-scale=1" name="viewport">
        <link href="Stylesheets/main.css" rel="stylesheet">
        <link href="Stylesheets/glicons.css" rel="stylesheet">
        <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
        <title>
            Codepixl
        </title>
    </head>
    <body>
        <!--#include file="nav.html"-->
         asdsd
        <div id="Scripts">
            <script src="http://code.jquery.com/jquery-latest.js"></script> <script src="Scripts/jquery.cookie.js"></script> <script src="Scripts/jquery-ui.min.js"></script> <script src="scripts/typed.js"></script> <script src="//codepixl.net/scripts/secret.js"></script>
        </div>
    </body>
</html>

和样式表:

body{
    background-color: #32CD32;
}
.loader {
  position: fixed;
  top: 50%;
  left: 50%;
  margin-top: -115px;
  margin-left: -115px;
    z-index: 9999;
}

但是背景颜色不显示?我试过使用html,body {}和使用doctype,但没有什么工作!发生了什么?

But the background color isn't showing up? I've tried using html,body{} and using a doctype but nothing works! What's happening?

编辑:我​​删除了bootstrap,它开始工作...也在这里的页面: http://codepixl.net/indesx.shtml

I removed bootstrap and it started working... Also here's the page: http://codepixl.net/indesx.shtml

编辑: 我只需要在我的样式表之前放置引导程序-_-

I just had to put the bootstrap before my stylesheet -_-

推荐答案

注释Bootstrap include,身体应用。

Comment your Bootstrap include and see if the body is applied. You should try to test with the minimal amount of code first and then add in things.

如果这不起作用,您可以使用Firefox或Chrome中的检查器看看应用了什么CSS效果。

If that doesn't work, you can use an inspector in Firefox or Chrome to see what CSS effects are applied.

您还可以使用Chrome中的网络检查器来确定您的样式表是否真的被下载,或者链接不正确。

You also may want to use the network inspector in Chrome to determine if your stylesheet is actually even getting downloaded or if the link is incorrect.

这篇关于身体背景颜色不显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆