导航栏中的引导图片

尼古拉斯·莫滕森

我有一个我想使用的图片而不是彩色背景的图片的问题。

但是由于某种原因,它只会给我带来纯白色的背景。

我似乎找不到错误,但我仍会尝试。我希望有人可以帮助我解决这个问题,因为我仍然可以正确学习HTML,CSS和PHP!

代码:

<?php
// CSS Fil:





?>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">

<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous">

<!-- Jquery css -->
<link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">

<!-- Fontawesome.io CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">

<style>
	html {
	  position: relative;
	  min-height: 100%;
	}
	body {
	  /* Margin bottom by footer height */
	  margin-bottom: 60px;
	}
	.footer {
	  position: absolute;
	  bottom: 0;
	  width: 100%;
	  /* Set the fixed height of the footer here */
	  height: 60px;
	  background-color: #f5f5f5;
	}
	

	
	body {
    background-image: url("images/vortrex-bg.png");
    background-size: cover;
    background-attachment: fixed;  
	}
	
	.footer {
		background: none;
        padding: 20px;
	}
	.footer-p {
		color: black;
		
	}
	.footer-link {
		color: red;
	}
	.footer-link:hover {
		text-decoration: none;
		color: darkred;
	}
	.navbar-default {
		background-image: url(../images/128-198.png);
        border-radius: 10px;
        border: solid;
	}
	.navbar-default .navbar-nav > li > a {
		color: black;
		text-align: center;
	}
	
	.navbar-default .navbar-nav > li > a:hover {
    color: darkgrey;
	}
	
	.navbar-default .navbar-nav > li > a:focus {
	color: none;
	}
	
	.navbar-default .navbar-nav .active > a,
	.navbar-default .navbar-nav .active > a:hover {
		color: black;
		background: darkgrey !important;
	}
	.img-circle {
	margin: -7px;
	}		
    .side-box-right {
        margin: 10px;
        padding: 10px;
        margin-top: 100px;
        float: right;
        border: solid;
        border-color: black;
        border-radius: 10px;
        background-image: url(../images/128-198.jpg);
        
    }
    .side-box-left {
        margin: 10px;
        padding: 10px;
        margin-top: 100px;
        float: right;
        border: solid;
        border-color: black;
        border-radius: 10px;
        background: darkgrey;
    }
    .nyheder {
        border: solid;
        background: darkgrey;
        border-radius: 10px;
    }

</style>
<?php include('config/setup.php'); ?>
<!DOCTYPE html>
<html>
	<head>
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta charset="UTF-8">
		<?php include('config/css.php'); ?>
		<?php include('config/js.php'); ?>
		
		<title>Home | Vortrex</title>
			
	</head>
	<body>
		<div class="container">
        <div class="row">
			<div class="col-md-2">
				<div class="side-box-left">
					Teamspeak3 Class
				<?php
				/*	try
					{
					 	 
					  // show server as online
					  echo "Server Status: online<br />\n";
					  echo "Server IP: " . $ts3->getAdapterHost() . ":" . $ts3->virtualserver_port . "<br />\n";
					  echo "Server Name: " . $ts3->virtualserver_name . "<br />\n";
					  echo "Server Uptime: " . TeamSpeak3_Helper_Convert::seconds($ts3->virtualserver_uptime) . "<br />\n";
					  echo "Server Version: " . TeamSpeak3_Helper_Convert::version($ts3->virtualserver_version) . "<br />\n";
					  echo "Current Clients: " . $ts3->virtualserver_clientsonline . " / " . $ts3->virtualserver_maxclients . "<br />\n";
					}
					catch(Exception $e)
					{
					  // grab errors and show server as offline
					  echo "Server Status: offline<br />\n";
					} */
				?>
				</div>
			</div>
		<!-- RIGHT HERE -->	
          <div class="col-md-8"> 	
				<nav class="navbar navbar-default" role="navigation">
					<ul class="nav navbar-nav">
						<div class="navbar-header"><a class="navbar-brand" href="#"><img class="img-circle" alt="Brand" src="images/logo.png" height="32" width="32"></a></div>
						<li class="active"><a href="index.php">Home</a></li>
						<li><a href="statistik.php">Statistikker</a></li>
						<li><a href="/forum">Forum</a></li>
						<li><a href="#">Kontakt</a></li>
                        <li><a href="shop.php">Shop</a></li>
                        <li><a href="bans/index.php">Ban List</a></li>
					</ul>
				</nav><!-- Slutningen af navbaren -->
					
				<div class="nyheder">
					
					<!-- Overskrift på forsiden! -->
					
					<h1 align="center">Velkommen til Vortrex</h1>
					
					<!-- Overskrift på forsiden! -->
					
					<!-- I mellen <p> og </p> skrives hvad der skal stå på forsiden! -->
					<br>
					<br>
					<h3 align="center">Nyheder</h1>
					<p align="center">
						
						<?php #SKRIV HERUNDER! ?>
						
					
                        
                        
						<?php #SKRIV HEROVER! ?>
					</p>
					<!-- I mellen <p> og </p> skrives hvad der skal stå på forsiden! -->
			
                </div>
						
		</div>
		<div class="col-md-2">
			<div class="side-box-right">
			<?php
			
			$q = "SELECT * FROM server";
			$r = mysqli_query($dbc, $q);
				
				if($r) {
					
				
					while ($rows = mysqli_fetch_assoc($r)) {
					
					$online = $rows['online'];
					$status = $rows['status'];
					   
                        
						if($status == "Online") {
                            echo "<h3 align='center'><font color='green'>$status</font><br>$online / 200</h3>";
                            echo "<h4><strong>mc.vortrex.dk</strong></h4>";
                            } else {
                            echo "<h3 align='center'><font color='red'>$status</font></h3>";
                            echo "<h4><strong>mc.vortrex.dk</strong></h4>";
                            }
                         }
                        } else {
                        echo "<h2>Der skette en fejl der gjorde serverens status ikke kunne vises!</h2>";
                        echo "<br>";
                        echo "<h4>Kontakt et staff medlem!";

                        }

                        ?>

			</div>
		</div>	
</div>	
</div>
				
				<?php include(D_TEMPLATE.'/footer.php'); ?>	
				
				<!--<div id="console-debug">
					Test debug window
				</div>-->

	</body>
</html>

感谢您的时间和帮助!

达瓦尔·哲达(Dhaval Chheda)

您的代码中有2条路径指向images文件夹

body {
    background-image: url("images/vortrex-bg.png");
    background-size: cover;
    background-attachment: fixed;  
    }

.navbar-default {
        background-image: url(../images/128-198.png);
        border-radius: 10px;
        border: solid;
    }

所以您需要修改其中之一并查看有哪些更改

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

引导中溢出的导航栏

来自分类Dev

边栏导航更改为引导中的顶部导航栏

来自分类Dev

将徽标放在引导导航栏中

来自分类Dev

导航栏中的引导输入组

来自分类Dev

垂直导航栏中的引导文本

来自分类Dev

将徽标放入引导导航栏中

来自分类Dev

引导导航栏中的中心文本

来自分类Dev

引导导航栏中的固定搜索框

来自分类Dev

引导导航栏中的下拉边距

来自分类Dev

引导导航栏中的链接错误

来自分类Dev

修复了引导程序中的导航栏

来自分类Dev

引导导航栏中的附加图像

来自分类Dev

引导导航栏中的固定搜索框

来自分类Dev

引导导航栏中的中心文本

来自分类Dev

引导程序导航栏中的神秘填充

来自分类Dev

引导导航栏崩溃

来自分类Dev

引导导航栏崩溃

来自分类Dev

引导导航栏?

来自分类Dev

引导导航栏

来自分类Dev

引导程序“导航栏品牌”导致“导航栏导航”项目从导航栏中的居中位置向右移动?

来自分类Dev

引导程序“导航栏品牌”导致“导航栏导航”项目从导航栏中的居中位置向右移动?

来自分类Dev

将个人资料图片添加到引导导航栏下拉菜单

来自分类Dev

如何在导航栏中添加购物车图片?

来自分类Dev

更改我的引导导航栏中链接的颜色

来自分类常见问题

响应式引导导航栏中的中心内容

来自分类Dev

如何在引导导航栏中动态设置活动类?

来自分类Dev

停止列表项堆叠在引导导航栏中

来自分类Dev

导航栏崩溃在引导程序中不起作用

来自分类Dev

引导程序3.1.0导航栏中的全宽输入组