已經搜索了與此問題有關的所有主題,但沒有任何答案幫助我,所以我發佈了一個新問題。PHP在特定頁面上隱藏div
我有我的網頁index.php有php包括所有的導航鏈接打開在同一個index.php。例如,當我點擊關於我們時,它會打開index.php?page = aboutus。
我的問題是我有我的主頁一個div:
<div class="icons_small">
<a href="#"><img src="images/layout/facebook_icon_s.png" width="75" height="67" /></a>
<a href="#"><img src="images/layout/twitter_icon_s.png" width="75" height="67" /></a>
<a href="#"><img src="images/layout/youtube_icon_s.png" width="75" height="67" /></a>
<a href="#"><img src="images/layout/location_icon_s.png" width="75" height="67" /></a>
</div>
對於這個div,我希望他隱藏在index.php文件,但我想這是在所有其他網頁像指數可見。 php?page = aboutus,index.php?page = contact等
有沒有簡單的方法來做到這一點與PHP? :)
Thx提前。
這就像一個魅力。 Thx很多:) – FallenRider
沒問題。如果我的答案已解決您的問題,請選擇它作爲接受的答案。 –
@FallenRider如果這解決了你的問題,你應該標記這[答案已被接受](http://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work) – karthikr