dongshuogai2343 2017-12-20 07:08
浏览 67

无法将css应用于bootstrap导航栏

I'm trying to add custom styles to navigation and body but the styles aren't showing in my home page but it's showing in another page I'm not getting it any one can help me out with solution where I'm messing around

index.php

<?php include 'include/css.php';?>
<?php $page = 'home';include 'include/navbar.php';?>

<?php include 'include/scripts.php';?>

Screenshot of browser for index.php

css.php

<html lang="en">
    <head>
        <title>Bootstrap 4 Example</title>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" >
        <link rel="stylesheet" href="../css/style.css">
    </head>
    <body>

Screenshot of browser for /include/css.php

style.css

body{
    background-color: aqua;!important
}
.navbar-nav > li > a {
    color: #ffffff;
}

i am attaching github link please download files upload in your local server and kindly find the error

you can download files here

  • 写回答

2条回答 默认 最新

  • 普通网友 2017-12-20 07:11
    关注

    Try this one.

    body{
       background-color: aqua !important;
    }
    .navbar-nav a {
        color: #ffffff !important;
    }
    
    评论

报告相同问题?

悬赏问题

  • ¥15 如何用stata画出文献中常见的安慰剂检验图
  • ¥15 c语言链表结构体数据插入
  • ¥40 使用MATLAB解答线性代数问题
  • ¥15 COCOS的问题COCOS的问题
  • ¥15 FPGA-SRIO初始化失败
  • ¥15 MapReduce实现倒排索引失败
  • ¥15 ZABBIX6.0L连接数据库报错,如何解决?(操作系统-centos)
  • ¥15 找一位技术过硬的游戏pj程序员
  • ¥15 matlab生成电测深三层曲线模型代码
  • ¥50 随机森林与房贷信用风险模型