1
我有我在的header.php所有頁面的基本導航欄,所以如何做到這一點使它活動讓人們知道他們是在通過導航欄使導航欄活躍在php include_once標籤
HTML
哪一頁<ul class="menu">
<li><a href="index.php">HOME</a></li>
<li><a href="features.php">SMARTRETAIL FEATURES</a></li>
<li><a href="faq.php">FREQUENTLY ASKED QUESTIONS</a></li>
<li><a href="customers.php">CUSTOMERS</a></li>
<li><a href="contactus.php">CONTACT US</a></li>
<li><a href="userguide.php">USER GUIDE</a></li>
</ul>
CSS
ul.menu {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
}
ul.menu li {
float: left;
border-right: 1px solid black;
}
ul.menu li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
ul.menu li a:hover:not(.active) {
background-color: #000000;
}
.active {
background-color: #2676f5;
}
是這個純PHP或使用CMS –