可能做错了但是我无法弄明白我试图把一个<li>
放在回声中,内容就在那里但样式表没有显示......
echo "<li>" . htmlentities($_SESSION['user']['username'], ENT_QUOTES, 'UTF-8') . "</li>";
<?php
require 'config.php';
?>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="../css/main.css">
</head>
<?php
include 'mc.php';
echo "<div class='usernav'>";
if(isset($_SESSION['user'])) {
echo "<li>" . htmlentities($_SESSION['user']['username'], ENT_QUOTES, 'UTF-8') . "</li>";
echo '<li><a href="">Members</a></li>';
echo '<li><a href="">Messages</a></li>';
echo '<li><a href="">Settings</a></li>';
echo '<li><a href="logout.php">Log out</a></li>';
}else {
echo '<li><a href="">Login</a></li>';
echo '<li><a href="">Register</a></li>';
}
echo "<div class='players'>";
echo "There is ";
echo $online;
echo " Online";
echo "</div>";
?>